struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-loop-7.c
blob80c21732a8eff5b63de99215df6c29e71a406ef0
1 /*
2 loop-7.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 void foo (unsigned int n)
13 int i, j = -1;
15 for (i = 0; i < 10 && j < 0; i++)
17 if ((1UL << i) == n)
18 j = i;
21 if (j < 0)
22 ASSERT (0);
25 void
26 testTortureExecute (void)
28 foo (64);
29 return;