summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/dependency_30.f90
blob: 6deda715bff8c1bee4bde970ca64a8d2e58ffbb2 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! { dg-options "-Warray-temporaries" }
! PR 45159 - make sure no temporary is created for this.
subroutine foo(a,b,i,j,k,n)
  implicit none
  integer, intent(in) :: i, j, k, n
  real, dimension(n) :: a,b
  a(k:i-1) = a(i:j)
end subroutine foo