Debian Codegraph @

gcc/testsuite/gfortran.dg/inline_sum_4.f90

raw
1 ! { dg-do compile }
2 !
3 ! PR fortran/53732
4 ! this was leading to an internal "mismatching comparison operand types"
5 ! error.
6 !
7 ! Original testcase by minzastro <[email protected]>
8 ! Fixed by Dominique Dhumieres <[email protected]>
9
10 program test
11 implicit none
12
13 real(8) arr(4,4,4,4)
14
15 arr(:,:,:,:) = 1d0
16
17 arr(1,:,:,:) = sum(arr, dim=1, mask=(arr(:,:,:,:) > 0d0))
18
19 end program test