OSDN Git Service

new testcases
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp25.C
1 // Build don't run:
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) { printf ("%d\n", sizeof (U)); }
10
11   int i[4];
12 };
13
14
15 int main()
16 {
17   S<char*> s;
18   s.f(3);
19   s.f(s);
20 }