summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/semicolon2.C
blob: d14a225a674bb6333142fd442f3d62412aef40a3 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/45332
// { dg-do compile }

class C
{
 int x				// { dg-error "at end of member declaration" }

 const int foo() { return x; }
};