1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
! { dg-do compile } ! { dg-options "-fno-automatic -finit-local-zero" } ! ! PR fortran/51800 ! ! Contributed by Mario Baumann ! SUBROUTINE FOO( N, A ) IMPLICIT NONE INTEGER :: N INTEGER :: A(1:N) INTEGER :: J INTEGER :: DUMMY(1:N) DO J=1,N DUMMY(J) = 0 A(J) = DUMMY(J) END DO END SUBROUTINE FOO