struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-951003-1.c
bloba973b341e6d5cabfe7fa224daef662c351d055d2
1 /*
2 951003-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
12 int f (int i) { return 12; }
13 int g () { return 0; }
15 void
16 testTortureExecute (void)
18 int i, s;
20 for (i = 0; i < 32; i++)
22 s = f (i);
24 if (i == g ())
25 s = 42;
26 if (i == 0 || s == 12)
28 else
29 ASSERT (0);
32 return;