diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/nearest_4.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/nearest_4.f90 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/nearest_4.f90 b/gcc/testsuite/gfortran.dg/nearest_4.f90 new file mode 100644 index 000000000..51ee35f9a --- /dev/null +++ b/gcc/testsuite/gfortran.dg/nearest_4.f90 @@ -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 |