2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit12.C
blobac8b7c5aa1261fe12cf5c13eceb6dd378699fd97
1 // { dg-do link  }
2 // { dg-options "-ansi -pedantic-errors -w" }
3 // GROUPS passed templates
4 template <class U>
5 struct S 
7   template <class T>
8   void foo(T t);
9 };
12 template <>
13 template <>
14 void S<char*>::foo<int>(int) {}
16 int main()
18   S<char*> s;
19   s.foo<int>(3.0);