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-931017-1.c
blob
13baaa1b29633b331256bfbcf32d3abce098e6bc
1
/*
2
931017-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
#endif
10
11
int
v
;
12
13
void
f
(
void
);
14
15
void
16
testTortureExecute
(
void
)
17
{
18
f
();
19
return
;
20
}
21
22
int
h1
(
void
)
23
{
24
return
0
;
25
}
26
27
int
h2
(
int
*
e
)
28
{
29
ASSERT
(
e
== &
v
);
30
return
0
;
31
}
32
33
int
g
(
char
*
c
)
34
{
35
int
i
;
36
int
b
;
37
38
do
39
{
40
i
=
h1
();
41
if
(
i
== -
1
)
42
return
0
;
43
else if
(
i
==
1
)
44
h1
();
45
}
46
while
(
i
==
1
);
47
48
do
49
b
=
h2
(&
v
);
50
while
(
i
==
5
);
51
52
if
(
i
!=
2
)
53
return
b
;
54
*
c
=
'a'
;
55
56
return
0
;
57
}
58
59
60
void
f
(
void
)
61
{
62
char
c
;
63
g
(&
c
);
64
}
65