labels-3.c

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

C
19
字号
/* This test does not compile on mips-irix6 using the native assembler,   though it does work with gas.  See PR6200.  Since we cannot (???)   distinguish which assembler is being used, always pass -S for   irix.  *//* { dg-options "-w -S" { target mips*-*-irix* } } *//* Verify that we can narrow the storage associated with label diffs.  */int foo (int a){  static const short ar[] = { &&l1 - &&l1, &&l2 - &&l1 };  void *p = &&l1 + ar[a];  goto *p; l1:  return 1; l2:  return 2;}

⌨️ 快捷键说明

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