struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-doloop-1.c
blob5592741aa48a9471cd923e41306fd792219ddc89
1 /*
2 doloop-1.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 #include <limits.h>
13 volatile unsigned int i;
15 void
16 testTortureExecute (void)
18 unsigned char z = 0;
20 do ++i;
21 while (--z > 0);
22 if (i != UCHAR_MAX + 1U)
23 ASSERT (0);
24 return;