1 /* 2 930603-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 11 int w[2][2]; 12 f()13f () 14 { 15 int i, j; 16 17 for (i = 0; i < 2; i++) 18 for (j = 0; j < 2; j++) 19 if (i == j) 20 w[i][j] = 1; 21 } 22 23 void testTortureExecute(void)24testTortureExecute (void) 25 { 26 f (); 27 if (w[0][0] != 1 || w[1][1] != 1 || w[1][0] != 0 || w[0][1] != 0) 28 ASSERT (0); 29 return; 30 } 31 32