OSDN Git Service

new testcases
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp26.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);
10
11   int i[4];
12 };
13
14
15 template <class X>
16 template <class U>
17 void S<X>::f(U u)
18 {
19   printf ("%d\n", sizeof (U));
20 }
21
22
23 int main()
24 {
25   S<char*> s;
26   s.f(3);
27   s.f(s);
28 }