summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/proc_ptr_16.f90
blob: 904b550b5e9e235cfdc803f968c8c7d2168a6dee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
! { dg-do compile }
!
! PR 39946: PROCEDURE statements: interface with RESULT variable
!
! Original test case by Juergen Reuter <reuter@physik.uni-freiburg.de>
! Modified by Janus Weil <janus@gcc.gnu.org>

  procedure(prc_is_allowed), pointer :: fptr

  interface
     function prc_is_allowed (flv, hel, col) result (is_allowed)
       logical :: is_allowed
       integer, intent(in) :: flv, hel, col
     end function prc_is_allowed
  end interface

  fptr => prc_is_allowed

end