2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp14.C
blob015aa25dcd16a85a829293ad6453c0fc9a93a639
1 // { dg-do link  }
2 // GROUPS passed templates membertemplates
3 extern "C" int printf (const char *, ...);
5 template <class T>
6 struct S
8   template <class U, class V>
9   void foo(U, V);
13 template <class T>
14 template <class U, class V>
15 void S<T>::foo(U, V)
17   printf("Hello, world.\n");
21 int main()
23   S<int> s;
24   s.foo(3, 3);
25   s.foo("hello", s);
27   S<char*> s2;
28   s2.foo(3, 3);
29   s2.foo("hello", s);