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
Implement C _FloatN, _FloatNx types.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr30364-1.c
blob
64ee7e44e36b812b78fead7dd09bb31149f9ba51
1
/* { dg-do run } */
2
3
#include <limits.h>
4
extern
void
abort
(
void
);
5
6
int
f
(
int
a
,
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
}