3 ! Test the fix for PR84074
5 ! Contributed by Vladimir Fuka <vladimir.fuka@gmail.com>
11 type(t) :: array(4) = [t(1),t(2),t(3),t(4)]
13 call sub(array((/3,1/)), [3,1,0,0]) ! Does not increment any elements of 'array'.
14 call sub(array(1:3:2), [1,3,0,0])
15 call sub(array(3:1:-2), [4,2,0,0])
16 call sub(array, [3,2,5,4]) ! Elements 1 and 3 should have been incremented twice.
20 subroutine sub(a, iarray)
25 if (a(i)%n .ne. iarray(i)) STOP 1