Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/eor_handling_3.f90 @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do run } |
2 ! PR 19595: Handle end-of-record condition with pad=yes (default) | |
3 program main | |
4 integer i1, i2 | |
5 open(77,status='scratch') | |
6 write (77,'(A)') '123','456' | |
7 rewind(77) | |
8 read(77,'(2I2)',advance='no',eor=100) i1,i2 | |
131 | 9 STOP 1 |
111 | 10 100 continue |
131 | 11 if (i1 /= 12 .or. i2 /= 3) STOP 2 |
111 | 12 close(77) |
13 end program main |