summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/error_format.f90
blob: 227a3e0c8fafae290b4be0c7136c2a1ff1cf1c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { 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" }