2 ! PR 35993 - some intrinsics with mask = .false. didn't set
3 ! the whole return array for multi-dimensional arrays.
4 ! Test case adapted from Dick Hendrickson.
8 call ga3019( 1, 2, 3, 4)
11 SUBROUTINE GA3019(nf1
,nf2
,nf3
,nf4
)
13 INTEGER IDA1(NF2
,NF4
,NF3
)
18 IDA(NF1
:NF2
,NF1
:NF3
) = PRODUCT(IDA1
,NF2
, NF1
.LT
. 0) !fails
19 if (any(ida
/= 1)) STOP 1
22 IDA(NF1
:NF2
,NF1
:NF3
) = PRODUCT(IDA1
,NF2
, .false
. ) !fails
23 if (any(ida
/= 1)) STOP 2
26 IDA(NF1
:NF2
,NF1
:NF3
) = PRODUCT(IDA1
,NF2
, ida1
.eq
. 137 ) !works
27 if (any(ida
/= 1)) STOP 3