fstream.tcc (overflow): According to 27.5.2.4.5, overflow() returns not_eof(eof()).
authorPaolo Carlini <pcarlini@unitus.it>
Tue, 10 Jun 2003 19:27:12 +0000 (21:27 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 10 Jun 2003 19:27:12 +0000 (19:27 +0000)
commit9335d80ab9e0ebdf8a380445a1b28613bbb37e1e
tree5d928134ddd43b2d1cd1ab110cf0effb3cd36eec
parent346eeb157eed29835cbe240fcd0f68c58f3decce
fstream.tcc (overflow): According to 27.5.2.4.5, overflow() returns not_eof(eof()).

2003-06-10  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/fstream.tcc (overflow): According to
27.5.2.4.5, overflow() returns not_eof(eof()).
* testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
* testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.

2003-06-10  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/fstream.tcc (_M_underflow): Check overflow return
value; tweak slightly.

From-SVN: r67726
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/2.cc [new file with mode: 0644]