Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr80259.C

raw
1 // PR c++/80259
2 // { dg-do compile { target c++11 } }
3
4 void foo () {} // { dg-message "previously defined here" }
5 void bar ();
6
7 struct A
8 {
9 friend void foo () = delete; // { dg-error "redefinition of" }
10 friend void bar () = delete; // { dg-error "not first declaration" }
11 };
12
13 void bar () {} // { dg-error "redefinition of" }