struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr49123.c
blobc12cf960235e3018bc855bfd63b41e24a162c2af
1 /*
2 pr49123.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 /* PR lto/49123 */
13 static struct S { signed int f : 1; } s;
14 static int v = -1;
16 void
17 testTortureExecute (void)
19 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ < 5 && __GNUC_MINOR__ < 7))
20 s.f = v < 0;
21 if ((unsigned int) s.f != -1U)
22 ASSERT (0);
23 return;
24 #endif