2 ! PR fortran/111503 - passing NULL() to POINTER, OPTIONAL, CONTIGUOUS dummy
6 integer, pointer, contiguous
:: p(:) => null()
7 integer, allocatable
, target
:: a(:)
9 integer, pointer, contiguous
:: p(:) => null()
10 integer, allocatable
:: a(:)
13 class(t
), allocatable
, target
:: c
14 print *, is_contiguous (p
)
24 call one (null (z
% p
))
25 call one (null (z
% a
))
28 call one (null (c
% p
))
29 call one (null (c
% a
))
32 integer, pointer, optional
, contiguous
, intent(in
) :: x(:)
35 print *, "->", associated (x
)
36 if (associated (x
)) stop 99