struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-950714-1.c
blobbb780dbbae9fba1acc7e4f78338bd4c7d13b4cd6
1 /*
2 950714-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
12 int array[10] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
14 void
15 testTortureExecute (void)
17 int i, j;
18 int *p;
20 for (i = 0; i < 10; i++)
21 for (p = &array[0]; p != &array[9]; p++)
22 if (*p == i)
23 goto label;
25 label:
26 if (i != 1)
27 ASSERT (0);
28 return;