diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/error_format.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/error_format.f90 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/error_format.f90 b/gcc/testsuite/gfortran.dg/error_format.f90 new file mode 100644 index 000000000..227a3e0c8 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/error_format.f90 @@ -0,0 +1,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" } |