aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/semicolon-fixits.C
blob: a9cc783b1725ae34a02ebe06cdcc62f7741986bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-options "-fdiagnostics-show-caret -Wpedantic" } */

/* Struct with extra semicolon.  */
struct s1 { int i;; }; /* { dg-warning "19: extra .;." } */
/* { dg-begin-multiline-output "" }
 struct s1 { int i;; };
                   ^
                   -
   { dg-end-multiline-output "" } */

/* Union with extra semicolon.  */
union u1 { int i;; }; /* { dg-warning "18: extra .;." } */
/* { dg-begin-multiline-output "" }
 union u1 { int i;; };
                  ^
                  -
   { dg-end-multiline-output "" } */