OSDN Git Service

2008-03-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Mar 2008 03:20:57 +0000 (03:20 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Mar 2008 03:20:57 +0000 (03:20 +0000)
PR testsuite/33296
gfortran.dg/nearest_4.f90: New test.

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

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

index 93b5b84..4429cbe 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