pr7284-1.c
来自「用于进行gcc测试」· C语言 代码 · 共 25 行
C
25 行
/* Signed left-shift is implementation-defined in C89 (and see DR#081), not undefined. Bug 7284 from Al Grant (AlGrant at myrealbox.com). *//* { dg-options "-std=c89" } */extern void abort (void);extern void exit (int);intf (int n){ return (n << 24) / (1 << 23);}volatile int x = 128;intmain (void){ if (f(x) != -256) abort (); exit (0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?