Commit 0edf45a3 by Daniel Kraft Committed by Daniel Kraft

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
parent bb79486c
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> 2010-09-03 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/45159 PR fortran/45159
......
! { dg-do compile } ! { dg-do compile }
! { dg-options "-std=f2003" }
! Test the patch for PR25098, where passing a variable as an ! Test the patch for PR25098, where passing a variable as an
! actual argument to a formal argument that is a procedure ! actual argument to a formal argument that is a procedure
! went undiagnosed. ! went undiagnosed.
...@@ -37,7 +38,7 @@ end module m1 ...@@ -37,7 +38,7 @@ end module m1
integer :: i, y, z integer :: i, y, z
i=1 i=1
call s1(i) ! { dg-error "Expected a procedure for argument" } 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(x) ! explicit interface
call s1(y) ! declared external call s1(y) ! declared external
call s1(z) ! { dg-error "Expected a procedure for argument" } call s1(z) ! { dg-error "Expected a procedure for argument" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment