struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-unroll-1.c
blob31c8c3e26ebad14bcf32256912f90d827f186b39
1 /*
2 unroll-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 static
12 inline int
13 f (int x)
15 return (x + 1);
18 void
19 testTortureExecute (void)
21 int a = 0 ;
23 while ( (f(f(f(f(f(f(f(f(f(f(1))))))))))) + a < 12 )
25 a++;
26 return;
28 if (a != 1)
29 ASSERT (0);