label-decl-3.c

来自「用于进行gcc测试」· C语言 代码 · 共 19 行

C
19
字号
/* Test diagnostics for label declarations.  Test with   -pedantic-errors.  *//* Origin: Joseph Myers <joseph@codesourcery.com> *//* { dg-do compile } *//* { dg-options "-pedantic-errors" } */typedef int b;voidf (void){  __label__ a, b, c, d;  __extension__ (void)&&d; /* { dg-error "label 'd' used but not defined" } */  /* { dg-error "ISO C forbids label declarations" "label decls" { target *-*-* } 12 } */  goto c; /* { dg-error "label 'c' used but not defined" } */ a: (void)0; b: (void)0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?