struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-loop-2.c
blobdb1834e589eb07a51d3b031d5f7fe07dec85a2a2
1 /*
2 loop-2.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 int a[2];
13 void f (int b)
15 unsigned int i;
16 for (i = 0; i < b; i++)
17 a[i] = i - 2;
20 void
21 testTortureExecute (void)
23 a[0] = a[1] = 0;
24 f (2);
25 if (a[0] != -2 || a[1] != -1)
26 ASSERT (0);
27 return;