3 ! PR97122: Declaration of a finalizable derived type in a submodule
6 ! Contributed by Ian Harvey <ian_harvey@bigpond.com>
12 MODULE SUBROUTINE other(i)
14 integer, intent(inout) :: i
28 FINAL :: final_t ! Used to be an error here
33 SUBROUTINE final_t(arg)
34 TYPE(t), INTENT(INOUT) :: arg
36 END SUBROUTINE final_t
38 module subroutine other(i) ! 'ti' is finalized
39 integer, intent(inout) :: i
48 if (mi .ne. -i) stop 1