2 ! { dg-options "-fno-range-check" }
3 ! { dg-add-options ieee }
4 ! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
8 ! Check support of INF/NaN for I/O.
14 character(len
=30) :: str
18 if (.not
.isnan(r
)) call abort()
21 if (.not
.isnan(real(z
)) .or
. aimag(z
) /= 4.0) call abort()
24 if (.not
.isnan(aimag(z
)) .or
. real(z
) /= 7.0) call abort()
28 if (r
<= huge(r
)) call abort()
29 str
= "(+inFinity,4.0)"
31 if ((real(z
) <= huge(r
)) .or
. aimag(z
) /= 4.0) call abort()
32 str
= "(7.0,-inFinity)"
34 if ((aimag(z
) >= -huge(r
)) .or
. real(z
) /= 7.0) call abort()
38 if (r
<= huge(r
)) call abort()
41 if ((real(z
) <= huge(r
)) .or
. aimag(z
) /= 4.0) call abort()
44 if ((aimag(z
) >= -huge(r
)) .or
. real(z
) /= 7.0) call abort()