1 // PR c++/34912
2
foo()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 }
11