20030404-1.c

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

C
24
字号
/* This exposed a bug in tree-ssa-ccp.c.  Since 'j' and 'i' are never   defined, CCP was not traversing the edges out of the if(), which caused   the PHI node for 'k' at the top of the while to only be visited once.   This ended up causing CCP to think that 'k' was the constant '1'.  */main(){  int i, j, k;  k = 0;  while (k < 10)    {      k++;      if (j > i)	j = 5;      else	j =3;    }  if (k != 10)    abort ();  return 0;}

⌨️ 快捷键说明

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