FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp47.C
blobe4f7ebf49221dbbd21c0a6cf4d7b4feb69370e18
1 // Build don't run:
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 g(U u)
10   { printf ("In S::g(U)\n"); }
12   int c[16];
16 template <class X>
17 struct T : public S<X>
19   template <class U>
20   void f(U u)
21   { printf ("In T::f(U)\n"); g(u); }
24 int main()
26   T<char*> t;
27   t.f(3);
28   t.f("adf");