summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/dependency_15.f90
blob: 36eb3a4642309ca8fb0200a91e79f3d45bcd5461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
! { dg-options "-O2 -fdump-tree-original" }
subroutine foo(a,i)
  integer, dimension (4,4) :: a
  integer :: i

  where (a(i,1:3) .ne. 0)
    a(i-1,2:4) = 1
  endwhere
end subroutine
! { dg-final { scan-tree-dump-times "malloc" 0 "original" } }
! { dg-final { cleanup-tree-dump "original" } }