20020107-1.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 29 行

C
29
字号
/* This testcase failed because - 1 - buf was simplified into ~buf and when   later expanding it back into - buf + -1, -1 got lost.  */extern void abort (void);extern void exit (int);static voidbar (int x){  if (!x)    abort ();}char buf[10];inline char *foo (char *tmp){  asm ("" : "=r" (tmp) : "0" (tmp));  return tmp + 2;}intmain (void){  bar ((foo (buf) - 1 - buf) == 1);  exit (0);}

⌨️ 快捷键说明

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