struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20030209-1.c
blob7fef7efc7fd5b3850dd7c1492d897aa9f66ae84e
1 /*
2 20030209-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 93
10 #endif
12 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
13 double x[10][10]; /* Was [100][100] originally, while the 9 below was 99, but that was too big for sdcc targets. */
14 #endif
16 void
17 testTortureExecute (void)
19 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
20 int i;
22 i = 9;
23 x[i][0] = 42;
24 if (x[9][0] != 42)
25 ASSERT (0);
26 return;
27 #endif