summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-08 11:55:41 +0000
committerjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-08 11:55:41 +0000
commit7dff348fe85475866857eb3ea06914fbba3e98f3 (patch)
tree173371c70f3cd7f0252eda565f2d2a3e8cb6a5db /gcc/testsuite
parent82fb15c172f8de46add413f4ef40296ee1f3a544 (diff)
downloadgcc-7dff348fe85475866857eb3ea06914fbba3e98f3.tar.gz
2008-06-08 Janus Weil <janus@gcc.gnu.org>
PR fortran/36459 * decl.c (match_procedure_decl): Correctly recognize if the interface is an intrinsic procedure. 2008-06-08 Janus Weil <janus@gcc.gnu.org> PR fortran/36459 * gfortran.dg/proc_decl_16.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136555 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/proc_decl_16.f9021
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d6a0c031e39..84ee84ca0a9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-08 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/36459
+ * gfortran.dg/proc_decl_16.f90: New.
+
2008-06-08 Tobias Burnus <burnus@net-b.de>
PR fortran/35830
diff --git a/gcc/testsuite/gfortran.dg/proc_decl_16.f90 b/gcc/testsuite/gfortran.dg/proc_decl_16.f90
new file mode 100644
index 00000000000..3251e52f512
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/proc_decl_16.f90
@@ -0,0 +1,21 @@
+! { dg-do compile }
+! PR fortran/36459
+!
+abstract interface
+ function dim()
+ integer :: dim
+ end function dim
+end interface
+procedure(dim) :: f
+
+interface
+ integer function tan()
+ end function
+end interface
+procedure(tan) :: g
+
+print *, f()
+
+print *, tan()
+
+end