re PR fortran/33296 (nearest(huge(1.0),1.0) gives an error)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 15 Mar 2008 03:20:57 +0000 (03:20 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 15 Mar 2008 03:20:57 +0000 (03:20 +0000)
2008-03-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR testsuite/33296
gfortran.dg/nearest_4.f90: New test.

From-SVN: r133236

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/nearest_4.f90 [new file with mode: 0644]

index 93b5b842d8e51259e935440342d77ab56d702373..4429cbe2606e9f243f17f5d2ba297bcf6ca5d100 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR testsuite/33296
+       gfortran.dg/nearest_4.f90: New test.
+
 2008-03-14  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/13761
diff --git a/gcc/testsuite/gfortran.dg/nearest_4.f90 b/gcc/testsuite/gfortran.dg/nearest_4.f90
new file mode 100644 (file)
index 0000000..51ee35f
--- /dev/null
@@ -0,0 +1,6 @@
+! { dg-do compile }
+! PR33296 nearest(huge(1.0),1.0) gives an error
+real x
+x = nearest(-huge(1.0),-1.0)
+print *, x
+end