2 ! PR 30146 - warn about DO variables as argument to INTENT(IN) and
3 ! INTENT(INOUT) dummy arguments
7 do k=1,2 ! { dg-error "undefined value" }
8 do i=1,10 ! { dg-error "definable" }
9 do j=1,10 ! { dg-error "undefined value" }
10 do l=1,10 ! { dg-error "definable" }
11 call s_out(k) ! { dg-error "undefined" }
12 call s_inout(i) ! { dg-error "definable" }
13 print *,f_out(j) ! { dg-error "undefined" }
14 print *,f_inout(l) ! { dg-error "definable" }
20 subroutine s_out(i_arg)
21 integer, intent(out) :: i_arg
24 subroutine s_inout(i_arg)
25 integer, intent(inout) :: i_arg
26 end subroutine s_inout
29 integer, intent(out) :: i_arg
34 function f_inout(i_arg)
35 integer, intent(inout) :: i_arg