Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/semicolon-fixits.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-options "-fdiagnostics-show-caret -Wpedantic" } */ |
2 | |
3 /* Struct with extra semicolon. */ | |
4 struct s1 { int i;; }; /* { dg-warning "19: extra semicolon in struct or union specified" } */ | |
5 /* { dg-begin-multiline-output "" } | |
6 struct s1 { int i;; }; | |
7 ^ | |
8 - | |
9 { dg-end-multiline-output "" } */ | |
10 | |
11 /* Union with extra semicolon. */ | |
12 union u1 { int i;; }; /* { dg-warning "18: extra semicolon in struct or union specified" } */ | |
13 /* { dg-begin-multiline-output "" } | |
14 union u1 { int i;; }; | |
15 ^ | |
16 - | |
17 { dg-end-multiline-output "" } */ |