blob: c3b78533f6552828ee899ad5f092807238d610c7 [file] [log] [blame]
// { dg-do link }
// GROUPS passed templates membertemplates
extern "C" int printf(const char*, ...);
struct S {
template <class T>
void foo(T);
};
template <class T>
void S::foo(T)
{
printf("Hello, world.\n");
}
int main()
{
S s;
s.foo(3);
s.foo(s);
}