nestfunc-6.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 30 行

C
30
字号
/* Test that the GP gets properly restored, either by the nonlocal   receiver or the nested function.  */#ifndef NO_TRAMPOLINEStypedef __SIZE_TYPE__ size_t;extern void abort (void);extern void exit (int);extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));int main (){  __label__ nonlocal;  int compare (const void *a, const void *b)  {    goto nonlocal;  }  char array[3];  qsort (array, 3, 1, compare);  abort (); nonlocal:  exit (0);}#elseint main() { return 0; }#endif

⌨️ 快捷键说明

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