struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-struct-ini-4.c
blob1da4a190adecc40a87dcffcef0f4b4a886119be0
1 /*
2 struct-ini-4.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 struct s {
12 int a[3];
13 int c[3];
16 struct s s = {
17 .c = {1, 2, 3}
20 void
21 testTortureExecute (void)
23 if (s.c[0] != 1)
24 ASSERT(0);
25 return;