From e6e189fa270c5aa4aa168eef3935aa7e40f30175 Mon Sep 17 00:00:00 2001 From: bstarynk Date: Mon, 4 May 2009 05:48:56 +0000 Subject: 2009-05-04 Basile Starynkevitch MELT branch merged with trunk r147090 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@147091 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gfortran.dg/proc_ptr_16.f90 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/proc_ptr_16.f90 (limited to 'gcc/testsuite/gfortran.dg/proc_ptr_16.f90') diff --git a/gcc/testsuite/gfortran.dg/proc_ptr_16.f90 b/gcc/testsuite/gfortran.dg/proc_ptr_16.f90 new file mode 100644 index 00000000000..904b550b5e9 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/proc_ptr_16.f90 @@ -0,0 +1,20 @@ +! { dg-do compile } +! +! PR 39946: PROCEDURE statements: interface with RESULT variable +! +! Original test case by Juergen Reuter +! Modified by Janus Weil + + 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 + -- cgit v1.2.1