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
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-941025-1.c
blob
2e3793653f4cfc4fef88fbb0f9f3c43466ef0cfa
1
/*
2
941025-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
long
f
(
long
x
,
long
y
)
12
{
13
return
(
x
>
1
) ?
y
: (
y
&
1
);
14
}
15
16
void
17
testTortureExecute
(
void
)
18
{
19
if
(
f
(
2L
,
0xdecade
L
) !=
0xdecade
L
)
20
ASSERT
(
0
);
21
return
;
22
}
23