2 ! { dg-options "-std=f2003" }
3 ! Test the patch for PR25098, where passing a variable as an
4 ! actual argument to a formal argument that is a procedure
7 ! Based on contribution by Joost VandeVondele <jv244@cam.ac.uk>
40 call s1(i
) ! { dg-error "Expected a procedure for argument" }
41 call s1(w
) ! { dg-error "used as actual argument" }
42 call s1(x
) ! explicit interface
43 call s1(y
) ! declared external
44 call s1(z
) ! { dg-error "Expected a procedure for argument" }
45 call s2(x
) ! { dg-error "Invalid procedure argument" }