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-vrp-3.c
blob
e1dabb9f5e742a2efd546c70e635e4b9b7a2cc4c
1
/*
2
vrp-3.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
int
f
(
int
a
) {
8
if
(
a
<
12
) {
9
if
(
a
> -
15
) {
10
a
=
a
>
0
?
a
: -
a
;
11
if
(
a
==
2
)
12
return
0
;
13
return
1
;
14
}
15
}
16
return
1
;
17
}
18
19
void
20
testTortureExecute
(
void
) {
21
if
(
f
(-
2
))
22
ASSERT
(
0
);
23
return
;
24
}
25