1 /* 2 pr48973-2.c from the execute part of the gcc torture tests. 3 */ 4 5 #include <testfwk.h> 6 7 #ifdef __SDCC 8 #pragma std_c99 9 #endif 10 11 /* PR middle-end/48973 */ 12 13 struct S { signed int f : 1; } s; 14 int v = -1; 15 16 void testTortureExecute(void)17testTortureExecute (void) 18 { 19 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ < 5)) 20 s.f = v < 0; 21 if ((unsigned int) s.f != -1U) 22 ASSERT (0); 23 return; 24 #endif 25 } 26 27