Debian Codegraph @

gcc/testsuite/gfortran.dg/pr96613.f90

raw
1 ! { dg-do run }
2 ! { dg-options "-O2 -std=gnu" }
3 ! PR fortran/96613 - Fix type/kind of temporaries evaluating MIN/MAX
4
5 program test
6 implicit none
7 real :: x = 7.7643945e+09
8 real :: y = 6000.
9 integer :: ix
10
11 ix = min1 (5000.0, x)
12 if (ix /= 5000) stop 1
13 ix = min1 (y, x, 5555.d0)
14 if (ix /= 5555) stop 2
15 end program