cleanup-7.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 24 行

C
24
字号
/* { dg-do run } *//* APPLE LOCAL testsuite nested functions *//* { dg-options "-O2 -g -fnested-functions" } *//* Verify that the search for function happens in the proper scope.  */extern void exit(int);extern void abort(void);int main(){  auto void xyzzy(void *p __attribute__((unused)))  {    exit (0);  }  auto void doit ()  {    int x __attribute__((cleanup (xyzzy)));  }  doit ();  abort ();}

⌨️ 快捷键说明

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