struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr49768.c
blob218b8c0825e246f39537023c310e6b5587afa520
1 /*
2 pr49768.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 tree-optimization/49768 */
13 void
14 testTortureExecute (void)
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