5 ! Contributed by James Van Buskirk and Jerry DeLisle.
7 ! Fix derived-type loading with ISO_BIND_C's C_PTR/C_FUNPTR.
16 function kill_C_PTR() bind(C
)
19 type(C_PTR
) kill_C_PTR
20 end function kill_C_PTR
25 function kill_C_FUNPTR() bind(C
)
28 type(C_FUNPTR
) kill_C_FUNPTR
29 end function kill_C_FUNPTR
43 integer(C_INT
),target
:: i
45 function fun() bind(C
)
58 function fun() bind(C
)
65 function kill_C_PTR() bind(C
)
68 type(C_PTR
) kill_C_PTR
69 integer(C_INT
), pointer :: p
72 end function kill_C_PTR
74 function kill_C_FUNPTR() bind(C
)
77 type(C_FUNPTR
) kill_C_FUNPTR
79 function fun() bind(C
)
85 kill_C_FUNPTR
= C_FUNLOC(fun
)
86 end function kill_C_FUNPTR