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
* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr30364-2.c
blob
d8b678d53c17480f036ddc9ff13a13b0f17ed048
1
/* { dg-do run } */
2
3
#include <limits.h>
4
extern
void
abort
(
void
);
5
6
int
f
(
unsigned int
a
,
unsigned int
b
)
7
{
8
if
(
a
>
INT_MAX
-
15
)
return
0
;
9
if
(
b
>
INT_MAX
-
15
)
return
0
;
10
11
int
c
= (
a
-
20
) + (
b
-
20
);
12
return
c
>
INT_MAX
-
15
;
13
}
14
15
int
main
()
16
{
17
if
(
f
(
INT_MAX
-
15
,
41
) !=
1
)
18
abort
();
19
return
0
;
20
}