/* loop-1.c from the execute part of the gcc torture tests. */ #include #ifdef __SDCC #pragma std_c99 #endif void testTortureExecute (void) { int i, j, k[3]; j = 0; for (i=0; i < 3; i++) { k[i] = j++; } for (i=2; i >= 0; i--) { if (k[i] != i) ASSERT (0); } return; }