From: David Billinghurst Date: Wed, 30 Jun 2004 11:50:45 +0000 (+0000) Subject: re PR fortran/16289 (Test intrinsic_nearest.f90 not portable?) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=807a7d143dd3b265d454cedbe89c45154fa70f81;p=gcc.git 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 --- 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)