struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr69320-1.c
blob07d442e3b6279bd42f11dcbd493095d4d8ee9614
1 /*
2 pr69320-1.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 #include <stdlib.h>
12 int a, b, d, f;
13 char c;
14 static int *e = &d;
15 void
16 testTortureExecute (void) {
17 int g = -1L;
18 *e = g;
19 c = 4;
20 for (; c >= 14; c++)
21 *e = 1;
22 f = a == 0;
23 *e ^= f;
24 #if 0 // Enable when SDCC intermingles
25 int h = ~d;
26 if (d)
27 b = h;
28 if (h)
29 return;
30 ASSERT(0);
31 #endif