2 ! Test the fix for PR113956
3 ! Contributed by David Binderman <dcb314@hotmail.com>
6 subroutine test_array_char(p
, x
)
7 character(*), target
:: x(:)
8 character(:), pointer :: p(:)
14 character(:), allocatable
, target
:: chr(:)
15 character(:), pointer :: p(:)
17 call test_array_char (p
, chr
)
18 if (loc (chr
) .ne
. loc (p
)) stop 1
19 if (len (p
) .ne
. 2) stop 2
20 if (any (p
.ne
. chr
)) stop 3