struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-961017-2.c
blobac4fa75ffd90ea45ce1fe69179bf662600cfc3d2
1 /*
2 961017-2.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 void
12 testTortureExecute (void)
14 int i = 0;
17 if (sizeof (unsigned long int) == 4)
19 unsigned long int z = 0;
21 do {
22 z -= 0x000040000;
23 i++;
24 if (i > 0x0004000)
25 ASSERT (0);
26 } while (z > 0);
27 return;
29 else if (sizeof (unsigned int) == 4)
31 unsigned int z = 0;
33 do {
34 z -= 0x000040000;
35 i++;
36 if (i > 0x0004000)
37 ASSERT (0);
38 } while (z > 0);
39 return;
41 else
42 return;