1 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
5 real, volatile, allocatable
:: A(:)
6 logical, volatile :: mask(11)
8 A
= [1,2,3,5,6,1,35,3,7,-3,-47]
12 call sub2 (minloc(A
),11)
13 call sub2 (maxloc(A
, mask
=mask
),9)
15 if (size (A
) /= 1 .or
. A(1) /= 11) call abort ()
19 if (A(1) /= n
.or
. size (A
) /= 1) call abort ()