3 ! Test the fix for PR86242, in which the procedure pointer in 'tester'
4 ! was being copied as if it were an allocatable class component.
6 ! Contributed by <cfd@mnet-mail.de>
24 class(wrapper
), allocatable
:: wrap
25 procedure(proc1
), pointer :: ptr
=> null()
29 function proc1(self
) result(uc
)
30 import
:: tester
, output
31 class(tester
), intent(in
) :: self
32 class(output
), allocatable
:: uc
38 ! Comment #2 from Janus Weil <janus@gcc.gnu.org>
47 integer, allocatable
:: wrap
48 procedure(proc1
), pointer, nopass
:: ptr
51 interface ! Originally abstract
52 function proc1() result(uc
)
54 class(output
), allocatable
:: uc
! Works if a pointer
58 ! PR82969 from Gerhard Steinmetz <gscfq@t-online.de>
60 real, allocatable
:: x(:)
61 procedure(f
), nopass
, pointer :: g
64 function f() result(z
)
65 class(t
), allocatable
:: z