OSDN Git Service

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