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-pr68185.c
blob52e18f05c48b064dd678fa1ce005cbf99395766a
1 /*
2 pr68158.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* { dg-skip-if "ptxas crashes or executes incorrectly" { nvptx-*-* } { "-O0" "-Os" } { "" } } Reported 2015-11-20 */
9 int a, b, d = 1, e, f, o, u, w = 1, z;
10 short c, q, t;
12 void
13 testTortureExecute (void)
15 #if 0 // Enable when SDCC intermingles
16 char g;
17 for (; d; d--)
19 while (o)
20 for (; e;)
22 c = b;
23 int h = o = z;
24 for (; u;)
25 for (; a;)
28 if (t < 1)
29 g = w;
30 f = g;
31 g && (q = 1);
34 if (q != 1)
35 ASSERT (0);
36 #endif
37 return;