2 ! Test fix of PR28118, in which a substring reference to an
3 ! actual argument with an array reference would cause a segfault.
5 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
11 call foo ((a(2:1:-1)(6:)))
12 call bar ((a(:)(7:11)))
15 character(7) :: chr(:)
16 if (chr(1)//chr(2) .ne
. "rstuvwxfghijkl") call abort ()
19 character(*) :: chr(:)
20 if (trim(chr(1))//trim(chr(2)) .ne
. "ghijkstuvw") call abort ()