aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr94030_1.f90
blob: e63d3cc8da4e176c8b4906e590aeebb40dc9bded (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do compile }
!

subroutine f(n)
  integer :: n
  integer :: arr(n)
  integer :: i
  equivalence (i, arr(1))
end

! { dg-error "Array 'arr' at .1. with non-constant bounds cannot be an EQUIVALENCE object" " " { target *-*-* } 8 }