(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
pr78719_1.f90
! { dg-do run }
! PR fortran/78719
! Code contributed by Gerhard Steinmetz 
program p

   type t
      integer :: n
   end type

   abstract interface
      subroutine h
      end
   end interface

   procedure(h), pointer :: s

   s => f
   call s
   s => g
   call s

   contains

      subroutine f
      end

      subroutine g
      end
end program p