blob: 18de68e0719d01b5b4f701cf36daf88a4395c367 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
! { dg-do run }
! { dg-shouldfail "runtime error" }
! PR fortran/29835
! Check for improved format error messages with correct locus and more detailed
! "unexpected element" messages.
! Now with runtime supplied format strings
SUBROUTINE format_runtime (fmtstr)
IMPLICIT NONE
CHARACTER(len=*) :: fmtstr
INTEGER :: x
PRINT fmtstr, x
END SUBROUTINE format_runtime
PROGRAM main
IMPLICIT NONE
CALL format_runtime ('(Q)')
END PROGRAM main
! { dg-output "Unexpected element 'Q'.*(\n|\r\n|\r)\\(Q\\)(\n|\r\n|\r) \\^" }
|