1 ! Related to PR 19928. Check that foo() is only called once per statement.
6 integer, dimension (5) :: field
8 type (t
), dimension (2) :: a
11 forall (i
= 1:2, j
= 1:5) a(i
)%field(j
) = i
* 100 + j
13 if (sum (a
%field(foo(calls
))) .ne
. 304) call abort
14 if (calls
.ne
. 1) call abort
15 if (sum (a(foo(calls
))%field
) .ne
. 1015) call abort
16 if (calls
.ne
. 2) call abort