2 subroutine sub(i
, j
, err
)
4 character(len
=*), intent(in
) :: err
5 integer, intent(in
) :: j
6 integer, intent(in
), allocatable
:: i(:)
7 integer, allocatable
:: m(:)
9 deallocate(i
) ! { dg-error "variable definition context" }
10 deallocate(m
, stat
=j
) ! { dg-error "variable definition context" }
11 deallocate(m
,stat
=n
,errmsg
=err
) ! { dg-error "variable definition context" }