| 1 |
// { dg-do compile { target c++98_only } } |
| 2 |
/* { dg-options "-fdiagnostics-show-caret -Wpedantic" } */ |
| 3 |
|
| 4 |
/* Struct with extra semicolon. */ |
| 5 |
struct s1 { int i;; }; /* { dg-warning "19: extra .;." } */ |
| 6 |
/* { dg-begin-multiline-output "" } |
| 7 |
struct s1 { int i;; }; |
| 8 |
^ |
| 9 |
- |
| 10 |
{ dg-end-multiline-output "" } */ |
| 11 |
|
| 12 |
/* Union with extra semicolon. */ |
| 13 |
union u1 { int i;; }; /* { dg-warning "18: extra .;." } */ |
| 14 |
/* { dg-begin-multiline-output "" } |
| 15 |
union u1 { int i;; }; |
| 16 |
^ |
| 17 |
- |
| 18 |
{ dg-end-multiline-output "" } */ |