900428_02.c

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

C
28
字号
// g++ 1.37.1 bug 900428_02// g++ fails to issue either errors or warnings (even with -pedantic) for// attempts to perform either pre or post increment or decrement operations// on variables which have either pointer-to-void types or pointer-to-function// types.// cfront 2.0 passes this test.// keywords: pointer arithmetic, increment, decrement// Build don't link:void *vp;void (*fp) ();void test (){  vp++;		/* ERROR - */  ++vp;		/* ERROR - */  vp--;		/* ERROR - */  --vp;		/* ERROR - */  fp++;		/* ERROR - */  ++fp;		/* ERROR - */  fp--;		/* ERROR - */  --fp;		/* ERROR - */}

⌨️ 快捷键说明

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