2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp78.C
blobcd54f3a7c9ec93fb031d29b7e959f9b7f990e11e
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() {}
28   template <class U>
29   void f() {}  // { dg-error "" } 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);
46   void f(U); // { dg-error "" } redeclaration 
49 template struct D2<int, int>; 
51 struct E
53   void f(); 
54   void f(); // { dg-error "" } redeclaration