2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp26.C
blob3eb5f287dd8829bdd46f8f765f0c6a321ea01be5
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   int i[4];
15 template <class X>
16 template <class U>
17 void S<X>::f(U u)
19   printf ("%d\n", sizeof (U));
23 int main()
25   S<char*> s;
26   s.f(3);
27   s.f(s);