1! { dg-do compile }
2! { dg-options "-std=legacy" }
3!
4! PR fortran/20865
5 subroutine tt(j)
6 integer :: j
7 end subroutine
8
9 integer :: i, st
10 st(i) = (i*i+2)
11 call tt(st) ! { dg-error "Statement function .* is not allowed as an actual argument|Invalid procedure argument" }
12 end
13