Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
scoping12.C
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
}