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:
parent
77f131ca20
commit
46343456ba
@ -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>
|
||||
|
||||
|
17
gcc/testsuite/gfortran.dg/recursive_check_2.f90
Normal file
17
gcc/testsuite/gfortran.dg/recursive_check_2.f90
Normal 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
|
Loading…
Reference in New Issue
Block a user