re PR fortran/45525 (gfortran.dg/dummy_procedure_1.f90 failed)

2010-09-03  Daniel Kraft  <d@domob.eu>

	PR fortran/45525
	* gfortran.dg/dummy_procedure_1.f90: Add -std=f2003 and adapt error.

From-SVN: r163840
This commit is contained in:
Daniel Kraft 2010-09-03 21:50:44 +02:00 committed by Daniel Kraft
parent bb79486c55
commit 0edf45a3f9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-09-03 Daniel Kraft <d@domob.eu>
PR fortran/45525
* gfortran.dg/dummy_procedure_1.f90: Add -std=f2003 and adapt error.
2010-09-03 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/45159

View File

@ -1,4 +1,5 @@
! { dg-do compile }
! { dg-options "-std=f2003" }
! Test the patch for PR25098, where passing a variable as an
! actual argument to a formal argument that is a procedure
! went undiagnosed.
@ -37,7 +38,7 @@ end module m1
integer :: i, y, z
i=1
call s1(i) ! { dg-error "Expected a procedure for argument" }
call s1(w) ! { dg-error "not allowed as an actual argument" }
call s1(w) ! { dg-error "used as actual argument" }
call s1(x) ! explicit interface
call s1(y) ! declared external
call s1(z) ! { dg-error "Expected a procedure for argument" }