Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/scoping12.C

raw
1 // { dg-do assemble }
2 void f ()
3 {
4 struct A {
5 friend void g (); // { dg-error "without prior local declaration" }
6 };
7 }
8 void h () {
9 g (); // { dg-error "3:'g' was not declared" } no g in scope
10 }