2 ! Tests the fix for PR41772 in which the empty array reference
3 ! 'qname(1:n-1)' was not handled correctly in TRANSFER.
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
10 pure function str_vs(vs) result(s)
11 character, dimension(:), intent(in) :: vs
12 character(len=size(vs)) :: s
15 subroutine has_key_ns(uri, localname, n)
16 character(len=*), intent(in) :: uri, localname
17 integer, intent(in) :: n
18 if ((n .lt. 2) .and. (len (uri) .ne. 0)) then
20 else IF ((n .ge. 2) .and. (len (uri) .ne. n - 1)) then
28 character, dimension(:), pointer :: QName
31 qname = (/ 'a','b','c','d','e','f' /)
34 call has_key_ns(str_vs(qname(1:n-1)),"", n)
38 ! { dg-final { cleanup-modules "m" } }