2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp7.C
blob02b1fc6bdad7da2a88450915253d541bf04e46e2
1 // { dg-do link  }
2 // GROUPS passed templates membertemplates
3 extern "C" int printf(const char*, ...);
5 struct S {
6   template <class T, class U>
7   S(T, U, T);
8 };
11 template <class T, class U>
12 S::S(T t1, U u1, T t2)
14   printf("Hello, world.\n");
18 int main()
20   S s1(3, "abc", 3);
21   S s2('a', s1, 'a');