OSDN Git Service

* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp29.C
1 // { dg-do link  }
2 // GROUPS passed templates membertemplates
3 extern "C" int printf(const char*, ...);
4
5 template <class X>
6 struct S
7 {
8   template <class U>
9   void f(U u);
10
11   template <class U>
12   void g(U U);
13
14   int c[16];
15 };
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); }
21
22 template <class X>
23 template <class U>
24 void S<X>::g(U u)
25   { printf ("In S::g(U)\n"); }
26
27 int main()
28 {
29   S<char*> s;
30   s.f(3);
31   s.f("adf");
32 }