1 /* Tests for labels before declarations and at ends of compound statements. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11 -pedantic" } */
8 a
: int i
= 2 * x
; /* { dg-warning "a label can only be part of a statement and a declaration is not a statement" } */
11 { i
*= 3; c
: } /* { dg-warning "label at end of compound statement" } */
13 d
: /* { dg-warning "label at end of compound statement" } */