summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template6.C
blob: 2cff7e5b41bcf1ea20f71c0dcb537f98181033fc (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
// { dg-do assemble  }
// GROUPS passed templates
struct B {
};

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

struct Request {
  X s;
};

template <class ET> class TC {
  ET data;
};

struct TMem {

  ~TMem() {}

  TC<Request> *req;
};

struct FIO {

  void init ();

  FIO () { init(); }
};