Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/advance_5.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 } ! PR31207 Last record truncated for read after short write. character(len=20) :: b ! write something no advance open(10,file="fort.10",position="rewind") write(10, '(a,t1,a)',advance='no') 'xxxxxx', 'abc' close(10) ! append some data open(10,file="fort.10",position="append") write(10, '(a)') 'def' close(10) ! check what is in the first record open(10,file="fort.10",position="rewind") read(10,'(a)') b close(10, status="delete") if (b.ne."abcxxx") STOP 1 end