2 ! tests FORALL statements with a mask
3 dimension i2(15,10), i1(15)
8 type(a
) :: a1(10), a2(5,5)
10 i1
= (/ 0, 1, 2, 3, 4, 0, 6, 7, 8, 9, 10, 0, 0, 13, 14 /)
11 forall (i
=1:15, i1(i
) /= 0)
14 if (any(i1
/= 0)) call abort
17 forall (i
=1:10, a1(i
)%k
== 0)
20 if (any (a1(:)%k
/= (/ (i
, i
=1,10) /))) call abort
22 forall (i
=1:15, j
=1:10, a1(j
)%k
<= j
)
26 if (any (i2(i
,:) /= (/ (i
*11 + j
, j
=1,10) /))) call abort