3 ! Test the fix for PR61147.
5 ! Contributed by Thomas Clune <Thomas.L.Clune@nasa.gov>
10 character(:), allocatable
:: string
15 function toPointer(this
) result(ptr
)
16 character(:), pointer :: ptr
17 class (B
), intent(in
), target
:: this
21 end function toPointer
29 character(:), pointer :: p
34 If (len (p
) .ne
. 3) call abort
35 If (p
.ne
. "foo") call abort