switch-7.c
来自「用于进行gcc测试」· C语言 代码 · 共 15 行
C
15 行
/* Test diagnostics for switch statements and labels therein. Test for case ranges with -pedantic-errors. *//* Origin: Joseph Myers <joseph@codesourcery.com> *//* { dg-do compile } *//* { dg-options "-pedantic-errors" } */voidf (int a){ switch (a) { case 0 ... 0: ; /* { dg-error "range expressions in switch statements are non-standard" } */ }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?