struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-loop-3.c
blob2a59634a5ba64c7ad0f461d074a3d9ebb2524841
1 /*
2 loop-3.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
12 #include <limits.h>
14 int n = 0;
16 void g (int i)
18 n++;
21 void f (int m)
23 int i;
24 i = m;
27 g (i * INT_MAX / 2);
29 while (--i > 0);
32 void
33 testTortureExecute (void)
35 f (4);
36 if (n != 4)
37 ASSERT (0);
38 return;