Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/eor_handling_4.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! PR 20092, 20131: Handle end-of-record condition with pad=yes (default) ! for standard input. This test case only really tests anything if, ! by changing unit 5, you get to manipulate the standard input. program main character(len=1) a(80) close(5) open(5,status="scratch") write(5,'(A)') 'one', 'two', 's' rewind(5) do i=1,4 read(5,'(80a1)') a if (a(1) == 's') goto 100 end do STOP 1 100 continue end program main