Reverting merge from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / label-decl-1.c
blob3b33888d890ed27e5c3de36f19cd0dcb3bd56b21
1 /* Test diagnostics for label declarations. Test with no special
2 options. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
7 typedef int b;
9 void
10 f (void)
12 __label__ a, b, c, d;
13 __extension__ (void)&&d; /* { dg-error "label 'd' used but not defined" } */
14 goto c; /* { dg-error "label 'c' used but not defined" } */
15 a: (void)0;
16 b: (void)0;