1 /* 2 pr49768.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 tree-optimization/49768 */ 12 13 void testTortureExecute(void)14testTortureExecute (void) 15 { 16 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ < 5 && __GNUC_MINOR__ < 7)) 17 static struct { unsigned int : 1; unsigned int s : 1; } s = { .s = 1 }; 18 if (s.s != 1) 19 ASSERT (0); 20 return; 21 #endif 22 } 23 24