]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/label-decl-3.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / label-decl-3.c
CommitLineData
fccf8fc6
JM
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" } */
6
7typedef int b;
8
9void
10f (void)
11{
12 __label__ a, b, c, d;
ad0637fd 13 __extension__ (void)&&d; /* { dg-error "label 'd' used but not defined" } */
c7412148 14 /* { dg-error "ISO C forbids label declarations" "label decls" { target *-*-* } 12 } */
ad0637fd 15 goto c; /* { dg-error "label 'c' used but not defined" } */
fccf8fc6
JM
16 a: (void)0;
17 b: (void)0;
18}