OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [fmt_error_5.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.