struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr37102.c
blob18fd198fad2ab0218d60a56b4281bd1e50a8cf1e
1 /*
2 pr37102.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 int a, b = 1, c;
13 void
14 foo (int x)
16 if (x != 5)
17 ASSERT (0);
20 void
21 testTortureExecute (void)
23 unsigned int d, e;
24 for (d = 1; d < 5; d++)
25 if (c)
26 a = b;
27 a = b;
28 e = a << 1;
29 if (e)
30 e = (e << 1) ^ 1;
31 foo (e);
32 return;