summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/init_flag_8.f90
blob: b3ccc03989d032c67add1f3c9cbc8bd33ba6c481 (plain)
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