2 ! { dg-options "-fdump-tree-original" }
6 ! Before invalid memory was accessed because an absent, optional
7 ! argument was packed before passing it as absent actual.
8 ! Getting it to crash is difficult, but valgrind shows the problem.
11 INTEGER, PARAMETER :: dp
=KIND(0.0D0
)
14 REAL(dp
), DIMENSION(45), INTENT(OUT
), &
16 if (present(a
)) call abort()
19 REAL(dp
), DIMENSION(:, :), INTENT(OUT
), &
29 ! { dg-final { scan-tree-dump-times "a != 0B \\? \\\(.*\\\) _gfortran_internal_pack" 1 "original" } }
30 ! { dg-final { scan-tree-dump-times "if \\(a != 0B &&" 1 "original" } }