* gfortran.dg/large_real_kind_form_io_2.f90: Use nearest.

From-SVN: r113553
This commit is contained in:
Steve Ellcey 2006-05-05 15:04:03 +00:00 committed by Steve Ellcey
parent 1633cb7cb6
commit c6ea4dd7ae
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-05-05 Steve Ellcey <sje@cup.hp.com>
* gfortran.dg/large_real_kind_form_io_2.f90: Use nearest.
2006-05-05 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR libfortran/26985

View File

@ -19,13 +19,13 @@ program large_real_kind_form_io_2
if (a /= b(1)) call abort ()
if (c /= b(2)) call abort ()
b(:) = tiny(0.0_k)
b(:) = nearest(tiny(0.0_k),1.0_k)
write (tmp, *) b
read (tmp, *) a, c
if (a /= b(1)) call abort ()
if (c /= b(2)) call abort ()
b(:) = -tiny(0.0_k)
b(:) = nearest(-tiny(0.0_k),-1.0_k)
write (tmp, *) b
read (tmp, *) a, c
if (a /= b(1)) call abort ()