summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/dependency_32.f90
blob: c0a3118acf53540328c79767277290b465856ebb (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! { dg-options "-Warray-temporaries" }
! PR 44235
! No temporary should be created for this, as the upper bounds
! are effectively identical.
program main
  real a(10)
  a = 0.
  a(1:10:4) = a(1:9:4)
end program main