13 lines
319 B
Fortran
13 lines
319 B
Fortran
|
! { 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" } }
|