2 ! { dg-options "-O2 -ftree-tail-merge -fno-delete-null-pointer-checks -fno-guess-branch-probability" }
4 ! based on testsuite/gfortran.dg/alloc_comp_optional_1.f90,
5 ! which was contributed by David Kinniburgh <davidkinniburgh@yahoo.co.uk>
9 character(LEN
=1), dimension(:), allocatable
:: chars
14 if (v_str
%chars(1) .ne
. "a") STOP 1
19 subroutine foo (arg
, flag
)
20 type(ivs
), optional
, intent(out
) :: arg
22 if (present(arg
)) then
23 arg
= ivs([(char(i
+96), i
= 1,10)])