/* 20020916-1.c from the execute part of the gcc torture suite. */ #include #ifdef __SDCC #pragma std_c99 #endif /* Distilled from try_pre_increment in flow.c. If-conversion inserted new instructions at the wrong place on ppc. */ int foo(int a) { int x; x = 0; if (a > 0) x = 1; if (a < 0) x = 1; return x; } void testTortureExecute (void) { if (foo(1) != 1) ASSERT(0); return; }