2 ! { dg-shouldfail "runtime error" }
5 ! Check for improved format error messages with correct locus and more detailed
6 ! "unexpected element" messages.
8 ! Now with runtime supplied format strings
9 SUBROUTINE format_runtime (fmtstr
)
11 CHARACTER(len
=*) :: fmtstr
15 END SUBROUTINE format_runtime
19 CALL format_runtime ('(Q)')
22 ! { dg-output "Unexpected element 'Q'.*(\n|\r\n|\r)\\(Q\\)(\n|\r\n|\r) \\^" }