Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr46909-2.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR tree-optimization/46909 */ extern void abort (void); int __attribute__((noinline)) foo (int x) { if ((x != 0 && x != 13) || x == 5 || x == 20) return 1; return -1; } int main (void) { int i; for (i = -10; i < 30; i++) if (foo (i) != 1 - 2 * (i == 0) - 2 * (i == 13)) abort (); return 0; }