Debian Codegraph @

gcc/testsuite/g++.dg/parse/semicolon2.C

raw
1 // PR c++/45332
2 // { dg-do compile }
3
4 class C
5 {
6 int x // { dg-error "at end of member declaration" }
7
8 const int foo() { return x; }
9 };