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
2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr57656.c
blob
4f3645e4693ea2895bdb1e50eb42448f8d579cc4
1
/* { dg-do run } */
2
/* { dg-options "-fstrict-overflow" } */
3
4
int
main
(
void
)
5
{
6
int
a
= -
1
;
7
int
b
=
__INT_MAX__
;
8
int
c
=
2
;
9
int
t
=
1
- ((
a
-
b
) /
c
);
// t = 1 - ( __INT_MIN__ / 2 )
10
if
(
t
!= (
1
- (-
1
-
__INT_MAX__
) /
2
))
11
__builtin_abort
();
12
return
0
;
13
}