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-941031-1.c
blob
03a81c06c0ee160a1dd58749bdfab88e1844066f
1
/*
2
941031-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
typedef
long
mpt
;
12
13
int
14
f
(
mpt us
,
mpt vs
)
15
{
16
long
aus
;
17
long
avs
;
18
19
aus
=
us
>=
0
?
us
: -
us
;
20
avs
=
vs
>=
0
?
vs
: -
vs
;
21
22
if
(
aus
<
avs
)
23
{
24
long
t
=
aus
;
25
aus
=
avs
;
26
avs
=
aus
;
27
}
28
29
return
avs
;
30
}
31
32
void
33
testTortureExecute
(
void
)
34
{
35
if
(
f
((
mpt
)
3
, (
mpt
)
17
) !=
17
)
36
ASSERT
(
0
);
37
return
;
38
}
39