diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/t06.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/t06.C | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/t06.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/t06.C new file mode 100755 index 0000000..8681f53 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/t06.C @@ -0,0 +1,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; |