FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp3.C
blob2a4dbb85c31f218cf2bcc28aecd34925ff9e3ccb
1 // Build don't run:
2 // GROUPS passed templates membertemplates
3 extern "C" int printf(const char*, ...);
5 struct S {
6   template <class T>
7   void foo(T);
8 };
11 template <class T>
12 void S::foo(T)
14   printf("Hello, world.\n");
19 int main()
21   S s;
22   s.foo(3);
23   s.foo(s);