Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / diagnostic / semicolon5.C
blob41b7bfa2ed89a076fbaf20d7fe50e876019419b6
1 // DR 1693, Superfluous semicolons in class definitions
2 // PR c++/113760
3 // { dg-do compile }
4 // { dg-options "-Wextra-semi" }
5 // { dg-prune-output "only available with" }
7 struct X { ; };               // { dg-warning "extra .;. inside a struct" }
9 struct S {
10   void baz () = delete;
11   void qux () = delete;
12   ;                           // { dg-warning "extra .;. inside a struct" }
13   void corge () = delete;
14   ;                           // { dg-warning "extra .;. inside a struct" }
15   ;                           // { dg-warning "extra .;. inside a struct" }
16   int s;
17   ;                           // { dg-warning "extra .;. inside a struct" }