/* 20090207-1.c from the execute part of the gcc torture tests. */ #include #ifdef __SDCC #pragma std_c99 #endif #ifndef __SDCC_pdk14 // Lack of memory int foo(int i) { int a[32]; a[1] = 3; a[0] = 1; a[i] = 2; return a[0]; } #endif void testTortureExecute (void) { #ifndef __SDCC_pdk14 // Lack of memory if (foo (0) != 2 || foo (1) != 1) ASSERT (0); return; #endif }