blob: 61591c3113c12eab7dea9016820bf1d5e066debe [file] [log] [blame]
! { dg-do compile }
! PR 20323
! We didn't verify that character length expressions are specification
! expressions.
function testpresent(arg)
integer, intent(in), optional :: arg
character(len=arg) :: s ! { dg-error "OPTIONAL" }
logical :: testpresent
testpresent=.true.
end function testpresent