struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr64682.c
blob07760dce8ffce483852dbcdd0977e9b1d3561ec8
1 /*
2 pr64682.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/64682 */
13 int a, b = 1;
15 void
16 foo (int x)
18 if (x != 5)
19 ASSERT (0);
22 void
23 testTortureExecute (void)
25 int i;
26 for (i = 0; i < 56; i++)
27 for (; a; a--)
30 int *c = &b;
31 if (*c)
32 *c = 1 % (unsigned int) *c | 5;
34 foo (b);
36 return;