Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / memtemp78.C
blob73348351f0d494c2d280291365ea9f68567ea664
1 // { dg-do assemble  }
3 struct A 
5   void f() {}
7   template <class U>
8   void f() {}
9 };
12 template <class T>
13 struct B
15   void f() {}
17   template <class U>
18   void f() {}
21 template struct B<int>;
23 struct C 
25   template <class U>
26   void f() {}  // { dg-error "with" } redeclaration
28   template <class U>
29   void f() {}  // { dg-error "overloaded" } redeclaration
33 template <class T, class U>
34 struct D
36   void f(T);
37   void f(U);
40 template struct D<int, double>;
42 template <class T, class U>
43 struct D2
45   void f(T); // { dg-error "with" } redeclaration 
46   void f(U); // { dg-error "overloaded" } redeclaration 
49 template struct D2<int, int>; 
51 struct E
53   void f();  // { dg-error "with" } redeclaration
54   void f(); // { dg-error "overloaded" } redeclaration