2 ! { dg-require-visibility "" }
4 ! PR 36704: Procedure pointer as function result
6 ! Original test case from James Van Buskirk.
8 ! Adapted by Janus Weil <janus@gcc.gnu.org>
10 module store_subroutine
15 integer, intent(inout
) :: i
19 procedure(sub
), pointer, private
:: psub
=> NULL()
26 end subroutine set_sub
29 procedure(sub
), pointer :: get_sub
33 end module store_subroutine
38 procedure(sub
), pointer :: qsub
48 recursive subroutine my_sub(j
)
51 integer, intent(inout
) :: j