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" } }