/* 20140212-1.c from the execute part of the gcc torture suite. */ #include #ifdef __SDCC #pragma std_c99 #pragma disable_warning 180 #endif /* PR rtl-optimization/60116 */ /* Reported by Zhendong Su */ int a, b, c, d = 1, e, f = 1, h, i, k; char g, j; void fn1 (void) { int l; e = 0; c = 0; for (;;) { k = a && b; j = k * 54; g = j * 147; l = ~g + (long long) e && 1; if (d) c = l; else h = i = l * 9UL; if (f) return; } } void testTortureExecute (void) { fn1 (); ASSERT (c == 1); }