3 ! Tests the fix for PR89363, in which the rank of unallocated or unassociated
4 ! entities, argument associated with assumed rank dummies, was not being set.
6 ! Contributed by Reinhold Bader <Bader@lrz.de>
11 subroutine procr(this
,flag
)
12 real, allocatable
:: this(..)
14 if (rank(this
) /= 2 .or
. allocated(this
)) then
15 write(*,*) 'FAIL procr', rank(this
), allocated(this
)
19 subroutine procs(this
,flag
)
20 real, allocatable
:: this(..)
22 if (rank(this
) /= 2 .or
. .not
. allocated(this
)) then
23 write(*,*) 'FAIL procs status', rank(this
), allocated(this
)
26 if (size(this
,1) /= 2 .and
. size(this
,2) /= 5) then
27 write(*,*) 'FAIL procs shape', size(this
)
31 end module mod_ass_rank_02
35 real, allocatable
:: x(:,:)
45 end program ass_rank_02