struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-930603-2.c
blobb89c455690c0be471462407fc9aa6ef05e40fd29
1 /*
2 930603-2.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 int w[2][2];
13 void
14 f (void)
16 int i, j;
18 for (i = 0; i < 2; i++)
19 for (j = 0; j < 2; j++)
20 if (i == j)
21 w[i][j] = 1;
24 void
25 testTortureExecute (void)
27 f ();
28 ASSERT(!(w[0][0] != 1 || w[1][1] != 1 || w[1][0] != 0 || w[0][1] != 0));
29 return;