Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / fmt_error_5.f90
blob18de68e0719d01b5b4f701cf36daf88a4395c367
1 ! { dg-do run }
2 ! { dg-shouldfail "runtime error" }
4 ! PR fortran/29835
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)
10 IMPLICIT NONE
11 CHARACTER(len=*) :: fmtstr
12 INTEGER :: x
14 PRINT fmtstr, x
15 END SUBROUTINE format_runtime
17 PROGRAM main
18 IMPLICIT NONE
19 CALL format_runtime ('(Q)')
20 END PROGRAM main
22 ! { dg-output "Unexpected element 'Q'.*(\n|\r\n|\r)\\(Q\\)(\n|\r\n|\r) \\^" }