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-980424-1.c
blobf9105360fae1569d94834df527ad92cb65544e9a
1 /*
2 980424-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 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
12 int i, a[99];
14 void f (int one)
16 if (one != 1)
17 ASSERT (0);
20 void
21 g ()
23 f (a[i & 0x3f]);
25 #endif
27 void
28 testTortureExecute (void)
30 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
31 a[0] = 1;
32 i = 0x40;
33 g ();
34 return;
35 #endif