1 /* 2 960302-1.c from the execute part of the gcc torture suite. 3 */ 4 5 #include <testfwk.h> 6 7 #ifdef __SDCC 8 #pragma std_c99 9 #endif 10 11 long a = 1; 12 13 #if !defined(__SDCC_pdk14) // Lack of memory - see RFE #364. foo()14foo () 15 { 16 switch (a % 2 % 2 % 2 % 2 % 2 % 2 % 2 % 2) 17 { 18 case 0: 19 return 0; 20 case 1: 21 return 1; 22 default: 23 return -1; 24 } 25 } 26 #endif 27 28 void testTortureExecute(void)29testTortureExecute (void) 30 { 31 #if !defined(__SDCC_pdk14) // Lack of memory - see RFE #364. 32 if (foo () != 1) 33 ASSERT (0); 34 return; 35 #endif 36 } 37 38