Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / other / friend4.C
blob537643df954924f10dcf1bbf80f963bda539b02b
1 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2 // Misleading diagnostic
4 struct A
6   friend void A::foo();  // { dg-error "implicitly friends" }
7   friend A::~A();        // { dg-error "implicitly friends" }
8 };