2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec11.C
blob8d7a04e552791d8275902b3eaa4f58a470c8f55f
1 // { dg-do run  }
2 extern "C" void abort();
4 template <class T>
5 struct S
7   template <class U>
8   int f(U u);
9 };
11 template <>
12 template <>
13 int S<char>::f(int i) { return 1; }
15 int main()
17   S<char> sc;
19   if (sc.f(3) != 1)
20     abort();