Update ChangeLogs and version numbers for 2.95.3 release
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp14.C
blobe24a3a7f0deb52cdaadb6cdadffe1c41421eddc9
1 // Build don't run:
2 // GROUPS passed templates membertemplates
3 extern "C" const char* 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);