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-20000205-1.c
blob
5dfcfe057d99ce9687c15d4480ea2e8d47b21f4b
1
/*
2
20000205-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 int
f
(
int
a
)
12
{
13
if
(
a
==
0
)
14
return
0
;
15
do
16
if
(
a
&
128
)
17
return
1
;
18
while
(
f
(
0
));
19
return
0
;
20
}
21
22
void
23
testTortureExecute
(
void
)
24
{
25
if
(
f
(~
128
))
26
ASSERT
(
0
);
27
return
;
28
}
29