FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit12.C
blob03355a7639fcfc812ef0374aa3515cc1e82a3092
1 // Build don't run:
2 // Special g++ 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);