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

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