re PR fortran/31609 (module that calls a contained function with an ENTRY point)

2007-07-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/31609
	* gfortran.dg/entry_11.f90: New test.

From-SVN: r127028
This commit is contained in:
Jerry DeLisle 2007-07-28 22:02:42 +00:00
parent 9b6dd30018
commit e417e594f1
2 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-07-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/31609
* gfortran.dg/entry_11.f90: New test.
2007-07-29 Vladimir Yanovsky <yanov@il.ibm.com>
Revital Eres <eres@il.ibm.com>

View File

@ -0,0 +1,25 @@
! { dg-do compile }
! PR31609 module that calls a contained function with an ENTRY point
! Test case derived from the PR
MODULE ksbin1_aux_mod
CONTAINS
SUBROUTINE sub
i = k()
END SUBROUTINE sub
FUNCTION j ()
print *, "in j"
j = 111
ENTRY k ()
print *, "in k"
k = 222
END FUNCTION j
END MODULE ksbin1_aux_mod
program testit
use ksbin1_aux_mod
l = j()
print *, l
l = k()
print *, l
end program testit