Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/BUG4.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
int foo() { char c; return (c ^ 30 ) > (c ^ 40 ); /* these also get the signal : return (c ^ 30 ) == (c ^ 40 ); return ((int)c ^ 30 ) > (c ^ 40 ); also fails if c is "extern char" these are ok : return (c + 30 ) > (c ^ 40 ); return (c ^ 30 ) > (c + 40 ); return (c ^ 30 ) + (c ^ 40 ); return ('a' ^ 30 ) > (c ^ 40 ); return (c ^ 40 ); return (c ^ 30 ) > (c ^ 40 ); */ }