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
re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
isnan_1.f90
blob
fe77bf4717a4fe00693f9af39e2dc572342cd0a6
1
! Test for the ISNAN intrinsic
2
!
3
! { dg-do run }
4
! { dg-add-options ieee }
5
! { dg-skip-if "NaN not supported" { spu-*-* } }
6
!
7
implicit none
8
real
::
x
9
x
= -
1.0
10
x
=
sqrt
(
x
)
11
if
(.
not
.
isnan
(
x
))
STOP
1
12
x
=
0.0
13
x
=
x
/
x
14
if
(.
not
.
isnan
(
x
))
STOP
2
15
16
x
=
5.0
17
if
(
isnan
(
x
))
STOP
3
18
x
=
huge
(
x
)
19
x
=
2
*
x
20
if
(
isnan
(
x
))
STOP
4
21
end