aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr95053_2.f90
blob: 7bb941ab46e7c7d5b960ffa9523e04c51b129929 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! PR 95053 - make sure we do not regress on 521.wrf_r from spec2017
!
function f (x)
  real, parameter :: cldeps = 0.
  f = 0.
  if (cldeps > 0.) then
     f = floor (x/cldeps) * cldeps
  end if
end function f