2 ! { dg-additional-options "-fno-inline -fno-ipa-modref -fdump-tree-optimized -fdump-tree-original" }
5 ! Check that the INTENT(OUT) attribute causes one clobber to be emitted in
6 ! the caller before each call to FOO in the *.original dump, and the
7 ! initialization constants to be optimized away in the *.optimized dump,
8 ! in the case of scalar allocatables and pointers.
14 integer, intent(out
) :: a
22 integer, allocatable
:: ca
24 integer, pointer :: cp
38 ! { dg-final { scan-tree-dump-times "CLOBBER" 2 "original" } }
39 ! { dg-final { scan-tree-dump "\\*ca = {CLOBBER};" "original" } }
40 ! { dg-final { scan-tree-dump "\\*cp = {CLOBBER};" "original" } }
41 ! { dg-final { scan-tree-dump-not "123456789" "optimized" { target __OPTIMIZE__ } } }
42 ! { dg-final { scan-tree-dump-not "987654321" "optimized" { target __OPTIMIZE__ } } }