3 ! Test the fix for PR70673
5 ! Contributed by David Kinniburgh <davidgkinniburgh@yahoo.co.uk>
10 character(*), intent(in
) :: inp
11 character(:), allocatable
:: a
13 a
= a
! This used to ICE too
14 if ((len (a
) .ne
. 5) .or
. (a
.ne
. "hello")) STOP 1
15 a
= a(2:3) ! Make sure that temporary creation is not broken.
16 if ((len (a
) .ne
. 2) .or
. (a
.ne
. "el")) STOP 2