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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20031003-1.c
blob
5d39d799e50447d610368d561eb959595f5a8f50
1
/* PR optimization/9325 */
2
3
#include <limits.h>
4
5
extern
void
abort
(
void
);
6
7
int
f1
()
8
{
9
return
(
int
)
2147483648.0
f
;
10
}
11
12
int
f2
()
13
{
14
return
(
int
)(
float
)(
2147483647
);
15
}
16
17
int
main
()
18
{
19
#if INT_MAX == 2147483647
20
if
(
f1
() !=
2147483647
)
21
abort
();
22
if
(
f2
() !=
2147483647
)
23
abort
();
24
#endif
25
return
0
;
26
}
27