// { dg-do assemble } template struct S; template class C { friend void S::f(); int i; }; template struct S { void f() { C c; c.i = 3; } }; template void S::f();