Sign in
◑
Theme
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
gm2
/
pimlib
/
run
/
pass
/
test.c
blob: d050c863a7dd3508dab32f1d68cc7e695403d0ef [
file
]
#include
<math.h>
#include
<stdio.h>
extern
double
a
;
int
main
()
{
if
(!
isfinite
(
a
))
printf
(
"infinity detected\n"
);
a
=
1.0
/
1.0
;
if
(
isfinite
(
a
))
printf
(
"number is now finite\n"
);
return
0
;
}