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-pr68376-1.c
blob622f6ba00b3d4d5ff61954cad9b9b7ba90cf967d
1 /*
2 pr68376-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* PR rtl-optimization/68376 */
9 int a, b, c = 1;
10 signed char d;
12 void
13 testTortureExecute (void)
15 for (; a < 1; a++)
16 for (; b < 1; b++)
18 signed char e = ~d;
19 if (d < 1)
20 e = d;
21 d = e;
22 if (!c)
23 ASSERT (0);
26 if (d != 0)
27 ASSERT (0);
29 return;