1 ! Check we do the right thing with extreme values.
3 program intrinsic_mmloc_3
4 integer, dimension(2) :: d
5 integer, dimension(2,2) :: a
6 logical, dimension(2) :: k
7 logical, dimension(2,2) :: l
13 if (maxloc (d
, 1) .ne
. 1) STOP 1
16 if (minloc (d
, 1) .ne
. 1) STOP 2
19 if (maxloc (d
, 1, k
) .ne
. 1) STOP 3
22 if (minloc (d
, 1, k
) .ne
. 1) STOP 4
26 if (any (d
.ne
. 1)) STOP 5
30 if (any (d
.ne
. 1)) STOP 6
34 if (any (d
.ne
. 1)) STOP 7
38 if (any (d
.ne
. 1)) STOP 8