From 807a7d143dd3b265d454cedbe89c45154fa70f81 Mon Sep 17 00:00:00 2001 From: David Billinghurst Date: Wed, 30 Jun 2004 11:50:45 +0000 Subject: [PATCH] re PR fortran/16289 (Test intrinsic_nearest.f90 not portable?) 2004-06-30 David Billinghurst (David.Billinghurst@riotinto.com) PR fortran/16289 * gfortran.fortran-torture/execute/intrinsic_nearest.f90 Use tiny() intrinsic to find smallest non-negative real From-SVN: r83904 --- gcc/testsuite/ChangeLog | 6 ++++++ .../gfortran.fortran-torture/execute/intrinsic_nearest.f90 | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b37a2009fd5..d9572251abf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ + 2004-06-30 David Billinghurst (David.Billinghurst@riotinto.com) + + PR fortran/16289 + * gfortran.fortran-torture/execute/intrinsic_nearest.f90 + Use tiny() intrinsic to find smallest non-negative real + 2004-06-30 Jakub Jelinek * gcc.dg/compat/struct-by-value-22_main.c: New test. diff --git a/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_nearest.f90 b/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_nearest.f90 index 99d802e6189..435c6795c5d 100644 --- a/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_nearest.f90 +++ b/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_nearest.f90 @@ -2,11 +2,10 @@ program test_nearest real s, r, x, y, inf, max, min - integer i, infi, maxi, mini + integer i, infi, maxi equivalence (s,i) equivalence (inf,infi) equivalence (max,maxi) - equivalence (min,mini) r = 2.0 s = 3.0 @@ -28,7 +27,7 @@ program test_nearest infi = z'7f800000' maxi = z'7f7fffff' - mini = 1 + min = tiny(1.0) call test_up(max, inf) call test_up(-inf, -max) -- 2.30.2