gcc/testsuite/g++.old-deja/g++.pt/t06.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | typedef int I; |
| 4 | int i; |
| 5 | |
| 6 | template <class A> class B { |
| 7 | A a; |
| 8 | public: |
| 9 | B(A&aa); |
| 10 | B(); |
| 11 | ~B(); |
| 12 | }; |
| 13 | |
| 14 | template <class B> class C { public: B b; }; |
| 15 | |
| 16 | template <class I, class i> class D : I { public: i ii; }; |
| 17 | |
| 18 | typedef B<int> b_int; |
| 19 | typedef C<int> c_int; |
| 20 | typedef C<b_int> c_b_int2; |
| 21 | |
| 22 | c_b_int2 x2; |
| 23 | int z; |
| 24 | D<c_b_int2,b_int> d; |
| 25 | int q; |