3 ! Test the fix for PR92959, where compilation of ASSOCIATED segfaulted in 's1' and 's2'.
5 ! Contributed by Gerhard Steinmetz <gscfq@t-online.de>
8 character(:), pointer :: x
, y
=> NULL()
9 character, pointer :: u
, v
=> NULL ()
10 character(4), target
:: tgt
= "abcd"
12 ! Manifestly not associated
17 ! Manifestly associated
22 ! Zero sized storage sequences must give a false.
27 subroutine s1 (state
, err_no
)
30 if (associated(x
, y
) .neqv
. state
) stop err_no
32 subroutine s2 (state
, err_no
)
35 if (associated(u
, v
) .neqv
. state
) stop err_no