PR middle-end/77674
[official-gcc.git] / gcc / testsuite / gfortran.dg / io_err_1.f90
blob4159a041a72fbc5733b993232ea1a9492017ed5a
1 ! { dg-do run }
2 ! { dg-shouldfail "Compile-time specifier checking" }
4 ! Contributed by Dominique Dhumieres <dominiq at lps dot ens dot fr>
5 program read
6 character(50) :: buf='0.D99999'
7 double precision val
8 read (UNIT=buf, FMT='(D60.0)', ERR=10) Val
9 call abort
10 10 read (UNIT=buf, FMT='(D60.0)') Val
11 end program read
12 ! { dg-output "At line 10 of file.*" }
13 ! { dg-output "Fortran runtime error: Bad value during floating point read" }