Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-930614-2.c
blob340e6021994992ff4188d7c24c578af69d341ba3
1 /*
2 930614-2.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 void
12 testTortureExecute (void)
14 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) && !( (defined (__SDCC_mos6502) || defined(__SDCC_mos65c02 )) && defined(__SDCC_STACK_AUTO) ) // Lack of memory
15 int i, j, k, l;
16 float x[8][2][8][2];
18 for (i = 0; i < 8; i++)
19 for (j = i; j < 8; j++)
20 for (k = 0; k < 2; k++)
21 for (l = 0; l < 2; l++)
23 if ((i == j) && (k == l))
24 x[i][k][j][l] = 0.8;
25 else
26 x[i][k][j][l] = 0.8;
27 if (x[i][k][j][l] < 0.0)
28 ASSERT (0);
31 return;
32 #endif