aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr77420_2.f90
blob: 4826801a2dcecbcbf54cd8feca8151e8f70a52d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
module test_equivalence
  real, private :: array1(100)
  real, private :: array2(100)
  equivalence(array1,array2)
end module test_equivalence

module mymodule
  use test_equivalence
  real, dimension(:), allocatable :: array1
end module mymodule

program test
  use mymodule
end program test