label-decl-2.c

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

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

⌨️ 快捷键说明

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