Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / diagnostic / friend2.C
blob4f4ada8bc1648cebe4b2507cfde6cbb7cba929af
1 // PR c++/61490
2 // { dg-do compile }
4 namespace N { void f (); }
5 void f2 ();
7 struct A {
8   friend void N::f () { } // { dg-error "15:friend function definition 'f' cannot have a name qualified with 'N::'" }
9   friend void ::f2 () { } // { dg-error "15:friend function definition 'f2' cannot have a name qualified with '::'" }