Debian Codegraph @

gcc/testsuite/g++.dg/pr104648.C

raw
1 // { dg-do compile }
2 // { dg-options "-fvtable-verify=preinit" }
3
4 struct A {};
5 struct B : virtual A
6 {
7 B () {};
8 B () {}; /* { dg-error "cannot be overloaded with" } */
9 };