LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / label-decl-3.c
blob2e9ea09e1fd1518e5e35efbcf1b85c60f2141d41
1 /* Test diagnostics for label declarations. Test with
2 -pedantic-errors. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-pedantic-errors" } */
7 typedef int b;
9 void
10 f (void)
12 __label__ a, b, c, d;
13 /* { dg-error "ISO C forbids label declarations" "label decls" { target *-*-* } .-1 } */
14 __extension__ (void)&&d; /* { dg-error "label 'd' used but not defined" } */
15 goto c; /* { dg-error "label 'c' used but not defined" } */
16 a: (void)0;
17 b: (void)0;