15 friend A::A (const A &);
21 friend int ~C (); // { dg-error "return type|in friend decl" }
22 friend int C (const C &);
28 friend int ~D () {} // { dg-error "return type|in friend decl" }
29 friend int D (const D &) {}
34 friend A::A () {} // { dg-error "cannot define member" }
35 friend A::~A () {} // { dg-error "cannot define member" }
36 friend A::A (const A &) {} // { dg-error "cannot define member" }