PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / read_empty_file.f
blobbf0f8622137fa92ce9af440ab0fb54f8765b3826
1 ! { dg-do run }
2 ! PR43320 Missing EOF on read from empty file.
3 open(8,status='scratch',form='formatted') ! Create empty file
4 read(8,'(a80)', end=123) ! Reading from an empty file should be an EOF
5 STOP 1
6 123 continue
7 end