summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/extra-semi-2.c
blob: 2964ed557e88e0519eaf95b423cbf6d29e4c41a5 (plain)
1
2
3
4
5
6
7
/* Test diagnostic for extra semicolon outside a function.  Test with
   -pedantic.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-pedantic" } */

; /* { dg-warning "ISO C does not allow extra ';' outside of a function" } */