2 ! { dg-additional-options "-fdump-tree-original" }
3 ! PR 30865 - passing a subroutine optional argument to size(dim=...)
12 call checkv (ires
, a
, 1)
15 subroutine checkv(ires
,a1
,opt1
)
16 integer, intent(out
) :: ires
18 integer, optional
:: opt1
20 ires
= size (a1
, dim
=opt1
)
24 ! Ensure inline code is generated, cf. PR fortran/94070
25 ! { dg-final { scan-tree-dump-not "_gfortran_size" "original" } }