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