struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr85582-1.c
blob2a0506a2152733ac1256616da9a1f79bc64d1596
1 /*
2 pr85582-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* PR target/85582 */
9 int a, b, d = 2, e;
10 long long c = 1;
12 void
13 testTortureExecute (void)
15 #if !defined(__SDCC_pdk13) && !defined(__SDCC_pdk14) && !(defined(__SDCC_pdk15) && defined(__SDCC_STACK_AUTO)) // Lack of memory
16 int g = 6;
17 L1:
18 e = d;
19 if (a)
20 goto L1;
21 g--;
22 int i = c >> ~(~e | ~g);
23 L2:
24 c = (b % c) * i;
25 if (!e)
26 goto L2;
27 return;
28 #endif