PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wextra-semi.C
blob8778582168be5492c6fa788b791f5b862820d390
1 // { dg-options "-Wextra-semi -fdiagnostics-show-caret" }
3 struct A
5   A() {};  /* { dg-warning "after in-class function definition" }
6   { dg-begin-multiline-output "" }
7    A() {};
8          ^
9          -
10   { dg-end-multiline-output "" } */
12   void foo() {};  /* { dg-warning "after in-class function definition" }
13   { dg-begin-multiline-output "" }
14    void foo() {};
15                 ^
16                 -
17   { dg-end-multiline-output "" } */
19   friend void bar() {};  /* { dg-warning "after in-class function definition" }
20   { dg-begin-multiline-output "" }
21    friend void bar() {};
22                        ^
23                        -
24   { dg-end-multiline-output "" } */