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-20001130-1.c
blob
d0a4a6872bb0d77b01c03491a683f0fef73fa54b
1
/*
2
20001130-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
inline
int
bar
(
void
) {
return
1
; }
12
static int
mem
[
3
];
13
14
static int
foo
(
int
x
)
15
{
16
if
(
x
!=
0
)
17
return
x
;
18
19
mem
[
x
++] =
foo
(
bar
());
20
21
if
(
x
!=
1
)
22
ASSERT
(
0
);
23
24
return
0
;
25
}
26
27
void
28
testTortureExecute
(
void
)
29
{
30
foo
(
0
);
31
return
;
32
}
33