1 ! Program to test FORALL with pointer assignment inside it.
4 integer, pointer, dimension(:)::p
8 integer, target
, dimension(25)::t
12 q(i
)%p
=> t((i
-1)*n
+ 1:i
*n
)
23 if (any(q(1)%p
.ne
. (/1,2,3,4,5/))) call abort
24 if (any(q(2)%p
.ne
. (/1,2,3,4,5/))) call abort
25 if (any(q(3)%p
.ne
. (/6,7,8,9,10/))) call abort
26 if (any(q(4)%p
.ne
. (/11,12,13,14,15/))) call abort
27 if (any(q(5)%p
.ne
. (/16,17,18,19,20/))) call abort