20030626-1.c

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

C
19
字号
/* PR optimization/11210 *//* Originator: Guido Classen <guido@clagi.de> *//* Reduced testcase by Falk Hueffner <falk@debian.org> *//* { dg-do compile } *//* { dg-options "-O" } *//* Verify that the constant expressions folder doesn't   throw away the cast operation in the comparison.  */struct str {   int head;   signed char data[8];};int foo(struct str t){  return t.data[0] || (unsigned char) t.data[2] != 130; /* { dg-bogus "comparison is always 1" } */}

⌨️ 快捷键说明

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