OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp39.C
1 // Build don't link:
2 // GROUPS passed templates membertemplates
3 template <class T>
4 struct S
5 {
6   template <class U>
7   void f(U u) { g(u); }
8
9   template <class U>
10   void g(U u) { f(u); }
11 };
12
13 void foo()
14 {
15   S<int> si;
16   si.f(3);
17 }