1 /*
2    unroll-1.c from the execute part of the gcc torture tests.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
10 
11 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Bug #2874
12 static
13 inline int
f(int x)14 f (int x)
15 {
16   return (x + 1);
17 }
18 #endif
19 
20 void
testTortureExecute(void)21 testTortureExecute (void)
22 {
23 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Bug #2874
24   int a = 0 ;
25 
26   while ( (f(f(f(f(f(f(f(f(f(f(1))))))))))) + a < 12 )
27     {
28       a++;
29       return;
30     }
31   if (a != 1)
32     ASSERT (0);
33 #endif
34 }
35 
36