summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/proc_ptr_16.f90
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-04 05:48:56 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-04 05:48:56 +0000
commite6e189fa270c5aa4aa168eef3935aa7e40f30175 (patch)
treea92ff5b1a65fe78279e0fd8b82fac273d28a6181 /gcc/testsuite/gfortran.dg/proc_ptr_16.f90
parent469cf0eb8ebe007ed2ed6d9b694396fb8216f80b (diff)
downloadgcc-e6e189fa270c5aa4aa168eef3935aa7e40f30175.tar.gz
2009-05-04 Basile Starynkevitch <basile@starynkevitch.net>
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
Diffstat (limited to 'gcc/testsuite/gfortran.dg/proc_ptr_16.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/proc_ptr_16.f9020
1 files changed, 20 insertions, 0 deletions
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 <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
+