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-20010403-1.c
blob
3ee0e889572f8e56bc59c6f05fa30b78312a0516
1
/*
2
20010403-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
#pragma disable_warning 85
10
#endif
11
12
void
b
(
int
*);
13
void
c
(
int
,
int
);
14
void
d
(
int
);
15
16
int
e
;
17
18
void
a
(
int
x
,
int
y
)
19
{
20
int
f
=
x
?
e
:
0
;
21
int
z
=
y
;
22
23
b
(&
y
);
24
c
(
z
,
y
);
25
d
(
f
);
26
}
27
28
void
b
(
int
*
y
)
29
{
30
(*
y
)++;
31
}
32
33
void
c
(
int
x
,
int
y
)
34
{
35
if
(
x
==
y
)
36
ASSERT
(
0
);
37
}
38
39
void
d
(
int
x
)
40
{
41
}
42
43
void
44
testTortureExecute
(
void
)
45
{
46
a
(
0
,
0
);
47
return
;
48
}
49