summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/read_eof_5.f90
blob: 3c606a024d696167f3c9355f7d38a3c310a7c3cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do run }
! PR34560 I/O internal read: END expected, but no failure
program main
  character(len=2) :: line
  character(len=1) :: a(3)
  a = "x"
  line = 'ab'
  read (line,'(A)',END=99) a
  call abort
  99 continue 
  if (any(a /= ['a','x','x'])) call abort
end program main