struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr61517.c
blob00e65dbc9e7bb49458adab810ba5222c2704a5c9
1 /*
2 pr61517.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 int a, b, *c = &a;
12 unsigned short d;
14 void
15 testTortureExecute (void)
17 unsigned int e = a;
18 *c = 1;
19 if (!b)
21 d = e;
22 *c = d | e;
25 if (a != 0)
26 ASSERT (0);