summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/compile/contained_2.f90
blob: 76ef6c6287145d53abef263fd618cd98ea9a4fdc (plain)
1
2
3
4
5
6
7
8
9
10
11
! Arrays declared in parent but used in the child.
program error
   implicit none
   integer, dimension (10) :: a
contains
   subroutine test()
      implicit none
      a(1) = 0
   end subroutine
end program