20030120-1.c

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

C
51
字号
/* On H8/300 port, NOTICE_UPDATE_CC had a bug that causes the final   pass to remove test insns that should be kept.  */unsigned shorttest1 (unsigned short w){  if ((w & 0xff00) == 0)    {      if (w == 0)	w = 2;    }  return w;}unsigned longtest2 (unsigned long w){  if ((w & 0xffff0000) == 0)    {      if (w == 0)	w = 2;    }  return w;}inttest3 (unsigned short a){  if (a & 1)    return 1;  else if (a)    return 1;  else    return 0;}intmain (){  if (test1 (1) != 1)    abort ();  if (test2 (1) != 1)    abort ();  if (test3 (2) != 1)    abort ();  exit (0);}

⌨️ 快捷键说明

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