2 ! Test procedures with allocatable dummy arguments
6 integer, allocatable
:: a(:)
7 integer, allocatable
:: b(:)
10 if (.NOT
.allocated(a
)) call abort()
11 if (.NOT
.all(a
== [ 1, 2, 3 ])) call abort()
14 if (.NOT
.all(b
== [ 1, 2, 3 ])) call abort()
16 if (.NOT
.all(whatever(a
) == [ 1, 2, 3 ])) call abort()
19 if (allocated(a
)) call abort()
22 if (allocated(b
)) call abort()
27 integer, allocatable
, intent(out
) :: x(:)
32 subroutine useit(x
, y
)
33 integer, allocatable
, intent(in
) :: x(:)
34 integer, allocatable
, intent(out
) :: y(:)
35 if (allocated(y
)) call abort()
41 integer, allocatable
:: x(:)
42 integer :: whatever(size(x
))
48 integer, allocatable
, intent(out
) :: x(:)
51 end program alloc_dummy