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-20030203-1.c
blob
dd20784f8937b85cc3ff7b7a787150f54357e652
1
/*
2
20030203-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
f
(
int
);
13
int
do_layer3
(
int
single
)
14
{
15
int
stereo1
;
16
17
if
(
single
>=
0
)
/* stream is stereo, but force to mono */
18
stereo1
=
1
;
19
else
20
stereo1
=
2
;
21
f
(
single
);
22
23
return
stereo1
;
24
}
25
26
void
27
testTortureExecute
(
void
)
28
{
29
if
(
do_layer3
(-
1
) !=
2
)
30
ASSERT
(
0
);
31
return
;
32
}
33
34
void
f
(
int
i
) {}
35