1 /* 2 20070212-2.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 f(int k,int i1,int j1)11int f(int k, int i1, int j1) 12 { 13 int *f1; 14 if(k) 15 f1 = &i1; 16 else 17 f1 = &j1; 18 i1 = 0; 19 return *f1; 20 } 21 22 void testTortureExecute(void)23testTortureExecute (void) 24 { 25 if (f(1, 1, 2) != 0) 26 ASSERT (0); 27 return; 28 } 29