PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / read_eof_5.f90
blob132eed77e3165d9bc34c4b96b1b3902df9455db0
1 ! { dg-do run }
2 ! PR34560 I/O internal read: END expected, but no failure
3 program main
4 character(len=2) :: line
5 character(len=1) :: a(3)
6 a = "x"
7 line = 'ab'
8 read (line,'(A)',END=99) a
9 STOP 1
10 99 continue
11 if (any(a /= ['a','x','x'])) STOP 2
12 end program main