struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-loop-6.c
blob568daf8e768fe976340377e8f7055e51243cc2b1
1 /*
2 loop-6.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
12 testTortureExecute (void)
14 char c;
15 char d;
16 int nbits;
17 c = -1;
18 for (nbits = 1 ; nbits < 100; nbits++) {
19 d = (1 << nbits) - 1;
20 if (d == c)
21 break;
23 if (nbits == 100)
24 ASSERT (0);
25 return;