! { dg-do compile }! { dg-options "-std=legacy" }!! PR fortran/20865subroutinett(j)integer:: j
end subroutineinteger:: i, st
st(i) = (i*i+2)calltt(st)! { dg-error "Statement function .* is not allowed as an actual argument|Invalid procedure argument" }end