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) call abort ()
16 if (minloc (d
, 1) .ne
. 1) call abort ()
19 if (maxloc (d
, 1, k
) .ne
. 1) call abort ()
22 if (minloc (d
, 1, k
) .ne
. 1) call abort ()
26 if (any (d
.ne
. 1)) call abort ()
30 if (any (d
.ne
. 1)) call abort ()
34 if (any (d
.ne
. 1)) call abort ()
38 if (any (d
.ne
. 1)) call abort ()