]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/label-decl-2.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / label-decl-2.c
CommitLineData
fccf8fc6
JM
1/* Test diagnostics for label declarations. Test with -pedantic. */
2/* Origin: Joseph Myers <joseph@codesourcery.com> */
3/* { dg-do compile } */
4/* { dg-options "-pedantic" } */
5
6typedef int b;
7
8void
9f (void)
10{
c2255bc4 11 __label__ a, b, c, d; /* { dg-warning "ISO C forbids label declarations" "label decls" { target *-*-* } 11 } */
ad0637fd 12 __extension__ (void)&&d; /* { dg-error "label 'd' used but not defined" } */
ad0637fd 13 goto c; /* { dg-error "label 'c' used but not defined" } */
fccf8fc6
JM
14 a: (void)0;
15 b: (void)0;
16}