1 ! Program to test WHERE inside FORALL
11 ! Where inside FORALL.
12 ! WHERE masks must be evaluated before executing the assignments
21 if (any (A .ne. reshape ((/1, 1, 1, 1, 1, 0, 1, 2, 1, 2, 0, 1, 2, 3, 0, &
22 0, 1, 4, 2, 0, 0, 5, 6, 6, 5/), (/5, 5/)))) call abort
25 A(1,:) = (/1,0,0,0,0/)
26 A(2,:) = (/2,1,1,1,0/)
27 A(3,:) = (/1,2,2,0,2/)
28 A(4,:) = (/2,1,0,2,3/)
29 A(5,:) = (/1,0,0,0,0/)
39 if (any (A .ne. reshape ((/1, 1, 1, 1, 1, 0, 1, 2, 1, 2, 0, 1, 2, 6, 0, &
40 0, 1, 0, 2, 0, 0, 0, 5, 5, 5/), (/5, 5/)))) call abort