repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-unroll-1.c
blob
31c8c3e26ebad14bcf32256912f90d827f186b39
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
static
12
inline
int
13
f
(
int
x
)
14
{
15
return
(
x
+
1
);
16
}
17
18
void
19
testTortureExecute
(
void
)
20
{
21
int
a
=
0
;
22
23
while
( (
f
(
f
(
f
(
f
(
f
(
f
(
f
(
f
(
f
(
f
(
1
))))))))))) +
a
<
12
)
24
{
25
a
++;
26
return
;
27
}
28
if
(
a
!=
1
)
29
ASSERT
(
0
);
30
}
31