PR libfortran/20068
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Apr 2005 08:07:43 +0000 (08:07 +0000)
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Apr 2005 08:07:43 +0000 (08:07 +0000)
commitca8650490a92f3c86ed5ff706ba4c837577919b4
tree1d304b753d205a7b07e5e32e0562a965e1ae648b
parent2b7a83f0dbf19a84096202dee39e5d2e9b1bb9c1
PR libfortran/20068
PR libfortran/20125
PR libfortran/20156
PR libfortran/20471

* io/backspace.c (unformatted_backspace): Fix error in arithmetic.
(st_backspace): When in WRITING mode, we flush and falling back
into READING mode. In all cases, correctly position the stream.

* gfortran.dg/backspace.f: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97478 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/backspace.f [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/backspace.c