1 ! Procedure to test module procedures returning arrays.
2 ! The array spec only gets applied to the result variable, not the function
3 ! itself. As a result we missed it during resolution, and used the wrong
4 ! calling convention (functions returning arrays must always have explicit
8 function z(a
) result (aout
)
9 integer, dimension(4) :: aout
,a
16 integer, dimension(4) :: b
, a
=(/1,2,3,4/)
18 if (any (b
.ne
. (/1, 2, 3, 4/))) call abort