summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template7.C
blob: 8fb636e7a56a4bacdd9ffe3c7dd3acb4d5c1237e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// { dg-do assemble  }
// GROUPS passed templates
template <class ET>
class ChainElem {
public:
  
  ET data;
};

template <class ET>
class Chain {
public:

  ChainElem<ET> *first;

  virtual ~Chain() {}

};

struct B {
};

struct X : B {
  ~X ();
};

struct TBNFexpression {
};

struct TCaseLabelPair {
};

struct TVariant {  
  Chain<TCaseLabelPair> CaseLabelList;
};

struct TCaseConstruct {
  Chain<TBNFexpression> TagFieldPrefixes;
  Chain<TVariant> Variants;
};

struct Production {
  X TypeName;
};

struct SimpleSyntax {
  Chain<Production> Productions;
};