Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / memtemp29.C
blobc14ca235772682d6f7800552bdb2d173b37dadfb
1 // { dg-do link  }
2 // GROUPS passed templates membertemplates
3 extern "C" int printf(const char*, ...);
5 template <class X>
6 struct S
8   template <class U>
9   void f(U u);
11   template <class U>
12   void g(U U);
14   int c[16];
17 template <class X>
18 template <class U>
19 void S<X>::f(U u)
20   { printf ("In S::f(U)\n"); g(u); }
22 template <class X>
23 template <class U>
24 void S<X>::g(U u)
25   { printf ("In S::g(U)\n"); }
27 int main()
29   S<char*> s;
30   s.f(3);
31   s.f("adf");