// PR c++/113760 // { dg-do compile } // { dg-options "-pedantic-errors" } struct S { void f1 () {} // A single semicolon is valid after a member function definition. void f2 () {}; void f3 () const; }; void S::f3 () const { }; // { dg-error "extra .;. outside of a function" "" { target c++98_only } }