blob: 38915a7ffab5dfe4274986c856cc13918b3e99e1 [file] [log] [blame]
// { dg-do assemble }
void f ()
{
struct A {
friend void g (); // { dg-error "without prior local declaration" }
};
}
void h () {
g (); // { dg-error "3:'g' was not declared" } no g in scope
}