2014-03-18 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Mar 2015 21:18:38 +0000 (21:18 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Mar 2015 21:18:38 +0000 (21:18 +0000)
PR fortran/59198
* gfortran.dg/proc_ptr_comp_45.f90 : Make tests fuzzy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221501 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/proc_ptr_comp_45.f90

index 2baa35b..fd0e885 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-18  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/59198
+       * gfortran.dg/proc_ptr_comp_45.f90 : Make tests fuzzy.
+
 2015-03-18  Martin Liska  <mliska@suse.cz>
 
        PR ipa/65439
index 8f8a8fe..3180345 100644 (file)
@@ -43,7 +43,7 @@ end
   allocate (template)
   allocate (template%rng)
   template%obs1_int => cos
-  if (template%obs1_int (arg) .ne. cos (arg)) call abort
+  if (abs (template%obs1_int (arg) - cos (arg)) .gt. 1e-4) call abort
   allocate (object, source = template)
-  if (object%obs1_int (arg) .ne. cos (arg)) call abort
+  if (abs (object%obs1_int (arg) - cos (arg)) .gt. 1e-4) call abort
 end