URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [fmt_error_5.f90] - Rev 302
Compare with Previous | Blame | View Log
! { 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) \\^" }