5 ! Contributed by Harald Anlauf <anlauf@gmx.de>
12 integer, parameter :: e(*) = [1, 1, -1, -1, 0, 0, 1]
14 integer, pointer :: t(:), u(:)
21 call p (t
, e(1)) ! Pointer with lower bound = -1 from allocation
22 u
=> t
! Pointer assignment sets same lower bound
25 u
=> t(:) ! Pointer assignment with implicit lower bound (1)
27 call p (t(:), e(4)) ! Full array, behaves the same
29 call p (t(0:), e(5)) ! Array section
30 u
=> t(0:) ! Pointer assignment with implicit lower bound (1)
32 u(0:) => t(0:) ! Pointer assignment with given lower bound (0)
39 integer, pointer, intent(in
) :: a(:)
40 integer, intent(in
) :: v