blob: 2043c25fe1c4d32e25ff8c7dc2dd6b181eab4aef [file] [log] [blame]
! { dg-do run }
! { dg-options "-O2 -std=gnu" }
! PR fortran/96613 - Fix type/kind of temporaries evaluating MIN/MAX
program test
implicit none
real :: x = 7.7643945e+09
real :: y = 6000.
integer :: ix
ix = min1 (5000.0, x)
if (ix /= 5000) stop 1
ix = min1 (y, x, 5555.d0)
if (ix /= 5555) stop 2
end program