Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / diagnostic / semicolon7.C
blobaca4f49785d59da9dd323e20e6210377d39c10bb
1 // DR 1693, Superfluous semicolons in class definitions
2 // PR c++/113760
3 // { dg-do compile }
4 // { dg-options "-pedantic-errors -Wno-error=extra-semi" }
5 // { dg-prune-output "only available with" }
7 struct X { ; };               // { dg-warning "extra .;. inside a struct" "" { target c++98_only } }
9 struct S {
10   void baz () = delete;
11   void qux () = delete;
12   ;                           // { dg-warning "extra .;. inside a struct" "" { target c++98_only } }
13   void corge () = delete;
14   ;                           // { dg-warning "extra .;. inside a struct" "" { target c++98_only } }
15   ;                           // { dg-warning "extra .;. inside a struct" "" { target c++98_only } }
16   int s;
17   ;                           // { dg-warning "extra .;. inside a struct" "" { target c++98_only } }