Debian Codegraph @

gcc/testsuite/g++.dg/ext/anon-struct9.C

raw
1 // PR c++/96636
2 // { dg-options "" }
3
4 typedef class {
5 class a {};
6 class : virtual a {}; // { dg-error "anonymous struct with base" }
7 } b;
8 void foo(){ b();}
9