aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t06.C
blob: 8681f5332fa99d64e8ee003f4a7bccc008ac2595 (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
// Build don't link: 

typedef int I;
int i;

template <class A> class B {
  A a;
 public:
  B(A&aa);
  B();
  ~B();
};

template <class B> class C { public: B b; };

template <class I, class i> class D : I { public: i ii; };

typedef B<int> b_int;
typedef C<int> c_int;      
typedef C<b_int> c_b_int2; 

c_b_int2 x2;
int z;
D<c_b_int2,b_int> d;
int q;