2 ! Test derived type constructors for derived types containing arrays.
8 ! The 4 components here test known shape array, unknown shape array,
9 ! multi-dimensional arrays and array pointers
13 integer, dimension(2, 3) :: c
14 integer, pointer, dimension(:) :: p
17 integer, dimension(2, 3) :: d
18 integer, dimension(:), pointer :: e
19 integer, dimension(2) :: f
23 d
= reshape ((/5, 6, 7, 8, 9, 10/), (/2, 3/));
26 v
= t((/1, 2/), reshape (f
, (/m
/)), d
, e
);
27 if (any (v
%a
.ne
. (/1, 2/)) .or
. any (v
%b
.ne
. (/3, 4/)) &
28 .or
. any (v
%c
.ne
. d
) .or
. .not
. associated (v
%p
, e
)) &