view gcc/testsuite/gfortran.dg/proc_ptr_16.f90 @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { 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