/* 20111227-1.c from the execute part of the gcc torture suite. */ #include #ifdef __SDCC #pragma std_c99 #endif /* PR rtl-optimization/51667 */ /* Testcase by Uros Bizjak */ void bar (int a) { if (a != -1) ASSERT (0); } void foo (short *a, int t) { short r = *a; if (t) bar ((unsigned short) r); else bar ((signed short) r); } short v = -1; void testTortureExecute (void) { foo (&v, 0); }