OSDN Git Service

new testcases
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp15.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 foo(U) {}
8 };
9
10
11 void f()
12 {
13   S<int> s;
14   s.foo(3);
15   s.foo("hello");
16 }