| 1 |
// { dg-options "-Wextra-semi -fdiagnostics-show-caret" } |
| 2 |
|
| 3 |
struct A |
| 4 |
{ |
| 5 |
A() {}; /* { dg-warning "after in-class function definition" } |
| 6 |
{ dg-begin-multiline-output "" } |
| 7 |
A() {}; |
| 8 |
^ |
| 9 |
- |
| 10 |
{ dg-end-multiline-output "" } */ |
| 11 |
|
| 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 "" } */ |
| 18 |
|
| 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 "" } */ |
| 25 |
}; |