summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg')
-rw-r--r--gcc/testsuite/gfortran.dg/large_real_kind_form_io_2.f904
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gfortran.dg/large_real_kind_form_io_2.f90 b/gcc/testsuite/gfortran.dg/large_real_kind_form_io_2.f90
index 222e1982e1a..5a2899cfedd 100644
--- a/gcc/testsuite/gfortran.dg/large_real_kind_form_io_2.f90
+++ b/gcc/testsuite/gfortran.dg/large_real_kind_form_io_2.f90
@@ -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 ()