// { dg-do run } // GROUPS passed templates extern "C" int printf (const char *, ...); template class Foo { public: void func (int const& i); }; template void Foo:: func (int const& i) {} int main () { Foo foo; printf ("PASS\n"); return 0; }