blob: adb354b4ee82c154afeb28250951a39e21718b54 [file] [log] [blame]
// PR c++/80259
// { dg-do compile { target c++11 } }
void foo () {} // { dg-message "previously defined here" }
void bar ();
struct A
{
friend void foo () = delete; // { dg-error "redefinition of" }
friend void bar () = delete; // { dg-error "not first declaration" }
};
void bar () {} // { dg-error "redefinition of" }