struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr63659.c
blobcc4268d5b4ff67ecd15bdf65c90fc36422d8c83d
1 /*
2 pr60822.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 /* PR rtl-optimization/63659 */
13 int a, b, c, *d = &b, g, h, i;
14 unsigned char e;
15 char f;
17 void
18 testTortureExecute (void)
20 while (a)
22 for (a = 0; a; a++)
23 for (; c; c++)
25 if (i)
26 break;
29 char j = c, k = -1, l;
30 l = g = j >> h;
31 f = l == 0 ? k : k % l;
32 e = 0 ? 0 : f;
33 *d = e;
35 if (b != 255)
36 ASSERT (0);
38 return;