summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr78719_1.f90
blob: f5a99c23eeee011aade120d7dfb87ce8655f9d28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
! { 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