blob: 4a4f636683b7fa6eef950c90070a6ab9b619648b [file] [log] [blame]
// { dg-do link }
// GROUPS passed templates
template <class T>
void foo(T);
class S {
friend void foo<>(int);
int i;
};
template <>
void foo(int)
{
S s;
s.i = 3;
}
int main()
{
foo(3);
}