3 ! Test for the fix for PR34640. In this case, final testing of the
4 ! patch revealed that in some cases the actual descriptor was not
5 ! being passed to procedure dummy pointers.
7 ! Contributed by Thomas Koenig <tkoenig@netcologne.de>
17 subroutine printit(c
, a
)
18 complex, pointer, dimension(:) :: c
20 integer(kind
=c_intptr_t
) :: a
21 a
= transfer(c_loc(c(2)),a
)
22 end subroutine printit
29 type(foo
), dimension(5), target
:: a
31 complex, dimension(:), pointer :: pc
32 integer(kind
=c_intptr_t
) :: s1
, s2
, s3
35 a(i
)%c
= cmplx(i
**2,i
)
40 s1
= transfer(c_loc(a(2)%c
),s1
)
43 s2
= transfer(c_loc(pc(2)),s2
)