4 ! Check that if a data reference passed is as actual argument whose dummy
5 ! has INTENT(OUT) attribute, any other argument depending on the
6 ! same data reference is evaluated before the data reference deallocation.
10 class(*), allocatable
:: c
12 call bar (allocated(c
), c
, allocated (c
))
13 if (allocated (c
)) stop 14
15 subroutine bar (alloc
, x
, alloc2
)
16 logical :: alloc
, alloc2
17 class(*), allocatable
, intent(out
) :: x(..)
18 if (allocated (x
)) stop 5
19 if (.not
. alloc
) stop 6
20 if (.not
. alloc2
) stop 16