aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template7.C
blob: 59dc4835632ee9c18f87f917f02b20dea3ec4ad7 (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
// Build don't link: 
// 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;
};