Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / memtemp11.C
blob8e8c3c1acdd92c819b74937ca19d9a5af67f0296
1 // { dg-do link  }
2 // GROUPS passed templates membertemplates
3 extern "C" int printf(const char*, ...);
5 struct S
7   template <class U>
8   S(U u, int i) {}
10   template <class T>
11   T foo(T t) 
12   { 
13     printf("Hello, world.\n");
14     return t; 
15   }
19 int main()
21   S s(3, 4);
22   int i = s.foo(3);
23   s.foo("hello");
24   s.foo(s);
25   
26   S s2("hello", 5);