Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr65216.c
blobc197ba16dacdf1156355950cfb3bd554c871e5ee
1 /*
2 pr65216.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* PR tree-optimization/65216 */
9 int a, b = 62, e;
10 volatile int c, d;
12 void
13 testTortureExecute (void)
15 int f = 0;
16 for (a = 0; a < 2; a++)
18 b &= (8 ^ f) & 1;
19 for (e = 0; e < 6; e++)
20 if (c)
21 f = d;
23 if (b != 0)
24 ASSERT (0);
25 return;