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