3 ! Check that the data reference preliminary code is properly
4 ! generated and accepted by the finalization handling code.
13 logical :: finalize_called
= .false
.
15 subroutine finalize_t(a
)
17 finalize_called
= .true
.
18 end subroutine finalize_t
23 type(t
), allocatable
:: ta
25 class(u
), allocatable
:: c(:)
26 integer, allocatable
:: a(:), b(:)
29 allocate(c
, source
= [u(t(1)), u(t(9))])
30 deallocate(c(count(a
+ b
== 4))%ta
)
31 if (.not
. allocated (c(1)%ta
)) stop 11
32 if (allocated (c(2)%ta
)) stop 12
33 if (.not
. finalize_called
) stop 13