(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
pr92781.f90
! PR fortran/92781
! { dg-do compile }

function foo ()
  character(:), allocatable :: foo
  call bar ()
  foo = 'abc'
contains
  subroutine bar
  end
end