Testcase forgotten in the previous commit.

PR fortran/26551
	* gfortran.dg/recursive_check_2.f90: New test.

From-SVN: r113861
This commit is contained in:
Francois-Xavier Coudert 2006-05-17 16:14:56 +02:00 committed by François-Xavier Coudert
parent 77f131ca20
commit 46343456ba
2 changed files with 18 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PR fortran/26551
* gfortran.dg/recursive_check_1.f: New test.
* gfortran.dg/recursive_check_2.f90: New test.
2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>

View File

@ -0,0 +1,17 @@
! { dg-do compile }
! PR fortran/26551
function func2()
integer func2
func2 = 42
return
entry c() result (foo)
foo = barbar()
return
entry b() result (bar)
bar = 12
return
contains
function barbar ()
barbar = b () ! { dg-error "is not declared as RECURSIVE" }
end function barbar
end function