OSDN Git Service

Revert XFAIL removal.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp14.C
1 // Build don't run:
2 // GROUPS passed templates membertemplates
3 extern "C" int printf (const char *, ...);
4
5 template <class T>
6 struct S
7 {
8   template <class U, class V>
9   void foo(U, V);
10 };
11
12
13 template <class T>
14 template <class U, class V>
15 void S<T>::foo(U, V)
16 {
17   printf("Hello, world.\n");
18 }
19
20
21 int main()
22 {
23   S<int> s;
24   s.foo(3, 3);
25   s.foo("hello", s);
26
27   S<char*> s2;
28   s2.foo(3, 3);
29   s2.foo("hello", s);
30 }