2009-10-05 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / dependency_10.f90
blobd6edde2bd040fde822146e9c367a386735e55692
1 ! { dg-do compile }
2 ! { dg-options "-O2 -fdump-tree-original" }
3 subroutine foo(a)
4 integer, dimension (4) :: a
5 integer :: n
7 n = 3
8 where (a(:n) .ne. 0)
9 a(:n) = 1
10 endwhere
11 end subroutine
12 ! { dg-final { scan-tree-dump-times "malloc" 0 "original" } }
13 ! { dg-final { cleanup-tree-dump "original" } }