struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-loop-11.c
blob3c8511b3190734ebc32f3b3744b88a46d8d5d564
1 /*
2 loop-11.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
12 static int a[199];
14 static void
15 foo ()
17 int i;
18 for (i = 198; i >= 0; i--)
19 a[i] = i;
21 #endif
23 void
24 testTortureExecute (void)
26 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
27 int i;
28 foo ();
29 for (i = 0; i < 199; i++)
30 if (a[i] != i)
31 ASSERT (0);
32 #endif
33 return;