aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/proc_ptr_9.f90
blob: 22708b8f1a845bf53305669140ef6ca9e409d50f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do compile }
!
! PR fortran/36705
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>

save :: p
procedure() :: p
pointer :: p

contains

subroutine bar(x)
  procedure(), intent(in) :: x
  pointer :: x
end subroutine bar 

end