3 ! Test the fix for PR88685, in which the component array references in 'doit'
4 ! were being ascribed to the class pointer 'Cls' itself so that the stride
5 ! measure between elements was wrong.
7 ! Contributed by Antony Lewis <antony@cosmologist.info>
12 integer, allocatable
:: CL(:)
15 type(TArr
), allocatable
, target
:: arr(:,:)
16 class(TArr
), pointer:: Cls(:,:)
20 allocate(arr(1,1)%CL(3))
24 if (any (arr(1,1)%cl
.ne
. [3,2,1])) stop 3
27 class(TArr
), pointer :: Cls(:,:)
30 cls(1,1)%CL(2:3) = [2,1]
32 if (any (Cls(1,1)%CL
.ne
. [3,2,1])) stop 1
33 if (Cls(1,1)%CL(2) .ne
. 2) stop 2