2 // PR c++/7874: Don't inject friend functions into global name space.
4 namespace N { template<typename T> struct A { friend void f(A) { }; }; }
8 N::f(a); // { dg-error "not a member" }
11 struct S { friend void g(); friend void h(S); };
12 struct T { friend void g(); friend void h(T); };
14 g(); // { dg-error "not declared" }