1// { dg-do link } 2// GROUPS passed templates membertemplates 3extern "C" int printf(const char*, ...); 4 5template <class X> 6struct S 7{ 8 template <class U> 9 void f(U u); 10 11 int i[4]; 12}; 13 14 15template <class X> 16template <class U> 17void S<X>::f(U u) 18{ 19 printf ("%d\n", sizeof (U)); 20} 21 22 23int main() 24{ 25 S<char*> s; 26 s.f(3); 27 s.f(s); 28} 29