/* pr78559.c from the execute part of the gcc torture tests. */ #include #ifdef __SDCC #pragma std_c99 #endif /* PR rtl-optimization/78559 */ int g = 20; int d = 0; short fn2 (int p1, int p2) { return p2 >= 2 || 5 >> p2 ? p1 : p1 << p2; } void testTortureExecute (void) { int result = 0; lbl_2582: if (g) { for (int c = -3; c; c++) result = fn2 (1, g); } else { for (int i = 0; i < 2; i += 2) if (d) goto lbl_2582; } if (result != 1) ASSERT (0); return; }