2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec6.C
blob276e398262e0511c9ca3d2220152a8d5378233e2
1 // { dg-do assemble  }
3 struct S1
5   template <class T>
6   void f(T t1, T t2);
7 };
10 template <>
11 void S1::f(int i1, int i2);
13 template <class U>
14 struct S2
16   template <class T>
17   void f(T t1, T t2);
20 template <>
21 template <>
22 void S2<char>::f(int i1, int i2);
24 void h()
26   S1 s1;
27   s1.f(3, 'c'); // { dg-error "" } no matching function
29   S2<char> s2;
30   s2.f(3, 'c'); // { dg-error "" } no matching function