☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend12.C
☽
☼
gcc/testsuite/g++.dg/lookup/friend12.C
code
plain
raw
1
// PR c++/34912
2
3
void foo()
4
{
5
extern void bar (int); // not the bar we are looking for
6
struct A
7
{
8
friend void bar(); // { dg-error "17:friend declaration .void bar\\(\\). in local class without prior local declaration" }
9
};
10
}