struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20060930-1.c
blobce0734c2bbd6209f7113c9d9a4361d55aa2f8334
1 /*
2 20060930-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 #pragma disable_warning 85
13 /* PR rtl-optimization/28096 */
14 /* Origin: Jan Stein <jan@gatespacetelematics.com> */
16 int bar (int, int);
17 int bar (int a, int b)
19 if (b != 1)
20 ASSERT (0);
23 void foo(int, int);
24 void foo (int e, int n)
26 int i, bb2, bb5;
28 if (e > 0)
29 e = -e;
31 for (i = 0; i < n; i++)
33 if (e >= 0)
35 bb2 = 0;
36 bb5 = 0;
38 else
40 bb5 = -e;
41 bb2 = bb5;
44 bar (bb5, bb2);
48 void testTortureExecute (void)
50 foo (1, 1);
51 return;