summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/dependency_12.f90
blob: 09fe19650dd74e408ee7be584d96431043843100 (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,b)
  integer, pointer, dimension (:,:) :: a
  real, dimension(:,:) :: b

  where (a == 0)
    b = 0.0
  endwhere
end subroutine
! { dg-final { scan-tree-dump-times "malloc" 0 "original" } }
! { dg-final { cleanup-tree-dump "original" } }