Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/eor_handling_3.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
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 | |
9 call abort | |
10 100 continue | |
11 if (i1 /= 12 .or. i2 /= 3) call abort | |
12 close(77) | |
13 end program main |