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-loop-7.c
blob
80c21732a8eff5b63de99215df6c29e71a406ef0
1
/*
2
loop-7.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
void
foo
(
unsigned int
n
)
12
{
13
int
i
,
j
= -
1
;
14
15
for
(
i
=
0
;
i
<
10
&&
j
<
0
;
i
++)
16
{
17
if
((
1UL
<<
i
) ==
n
)
18
j
=
i
;
19
}
20
21
if
(
j
<
0
)
22
ASSERT
(
0
);
23
}
24
25
void
26
testTortureExecute
(
void
)
27
{
28
foo
(
64
);
29
return
;
30
}