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-pr24142.c
blob
d13d616e3e897d04d1d1efa62c7ffe12683b88ac
1
/*
2
pr24142.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
#endif
10
11
int
f
(
int
a
,
int
b
)
12
{
13
if
(
a
==
1
)
14
a
=
0
;
15
if
(
b
==
0
)
16
a
=
1
;
17
if
(
a
!=
0
)
18
return
0
;
19
return
1
;
20
}
21
22
void
23
testTortureExecute
(
void
)
24
{
25
if
(
f
(
1
,
1
) !=
1
)
26
ASSERT
(
0
);
27
return
;
28
}
29