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 SAVE variables.
14 integer, intent(out
) :: a
24 ! implicit SAVE attribute
29 ! explicit SAVE attribute
30 call check_save_explicit
33 subroutine check_save_explicit
38 end subroutine check_save_explicit
41 ! { dg-final { scan-tree-dump-times "CLOBBER" 2 "original" } }
42 ! { dg-final { scan-tree-dump "c = {CLOBBER};" "original" } }
43 ! { dg-final { scan-tree-dump "d = {CLOBBER};" "original" } }
44 ! { dg-final { scan-tree-dump-not "123456789" "optimized" { target __OPTIMIZE__ } } }
45 ! { dg-final { scan-tree-dump-not "987654321" "optimized" { target __OPTIMIZE__ } } }