repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[RFA] Fix csky and c6x build failures
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr43000.c
blob
c1123375000c7f3d438a7d59be0b6095d99beb32
1
/* { dg-do run } */
2
/* { dg-options "-fwrapv" } */
3
4
int
__attribute__
((
noinline
))
5
foo
(
long
i
,
long
j
)
6
{
7
if
(
i
>=
1
)
8
if
(
j
> -(
long
)(((
unsigned long
)(
long
)-
1
)>>
1
))
9
{
10
long
x
;
11
j
--;
12
x
=
i
+
j
;
13
if
(
x
>=
0
)
14
return
1
;
15
}
16
return
0
;
17
}
18
extern
void
abort
(
void
);
19
int
main
()
20
{
21
if
(
foo
(
1
,
1
) !=
1
)
22
abort
();
23
return
0
;
24
}