struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-931110-1.c
blob6bc4ca541e5c44bca8dc8bc5378422ff79746089
1 /*
2 931110-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 typedef struct
13 short f:3, g:3, h:10;
14 } small;
16 struct
18 int i;
19 small s[10];
20 } x;
22 void
23 testTortureExecute (void)
25 int i;
26 for (i = 0; i < 10; i++)
27 x.s[i].f = 0;
28 return;