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-930622-1.c
blob
3e6011c0c47ede9b62188ef3dd12cb698d77ba3b
1
/*
2
930622-1.c from the execute part of the gcc torture suite.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#pragma disable_warning 85
10
#endif
11
12
int
a
=
1
,
b
;
13
14
int
g
() {
return
0
; }
15
void
h
(
int
x
) {}
16
17
int
f
()
18
{
19
if
(
g
() == -
1
)
20
return
0
;
21
a
=
g
();
22
if
(
b
>=
1
)
23
h
(
a
);
24
return
0
;
25
}
26
27
void
28
testTortureExecute
(
void
)
29
{
30
f
();
31
if
(
a
!=
0
)
32
ASSERT
(
0
);
33
return
;
34
}
35