view gcc/testsuite/gfortran.dg/error_format.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do run }
! { dg-shouldfail "Runtime error format check" }
! PR32456 IO error message should show Unit/Filename
program test
  implicit none
  integer :: i
  open(99, status="scratch")
  read(99,*) i
end program
! { dg-output ".*(unit = 99, file = .*)" }
! { dg-output "Fortran runtime error: End of file" }