6 ! Contributed by Mat Cross
8 ! Fix derived-type loading with ISO_BIND_C's C_PTR/C_FUNPTR.
11 USE ISO_C_BINDING
, ONLY
: C_PTR
14 INTEGER :: WIDTH
, HEIGHT
, PXFMT
, NCHAN
15 TYPE (C_PTR
) :: PIXELS
17 END MODULE NAG_J_TYPES
18 program cfpointerstress
22 type(nag_image
),pointer :: img
29 write(*,*) 'C_ASSOCIATED =', C_ASSOCIATED(ptr
)
30 call c_f_pointer(ptr
, img
)
31 write(*,*) 'ASSOCIATED =', associated(img
)
33 end program cfpointerstress