struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr70005.c
blobe8e1cd7600b5bc22e0c010730daf71887ed0a4ba
1 /*
2 pr70005.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 unsigned char a = 6;
12 int b, c;
14 static void
15 fn1 ()
17 int i = a > 1 ? 1 : a, j = 6 & (c = a && (b = a));
18 int d = 0, e = a, f = ~c, g = b || a;
19 unsigned char h = ~a;
20 if (a)
21 f = j;
22 if (h && g)
23 d = a;
24 i = -~(f * d * h) + c && (e || i) ^ f;
25 if (i != 1)
26 ASSERT (0);
29 void
30 testTortureExecute (void)
32 fn1 ();
33 return;