re PR libstdc++/16956 ([3.4 only] std::stringbuf::seekoff return wrong position value)
authorPaolo Carlini <pcarlini@suse.de>
Thu, 12 Aug 2004 22:26:32 +0000 (22:26 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 12 Aug 2004 22:26:32 +0000 (22:26 +0000)
commit0a162bde464b45ccfdc3045d0c6e515981cc76d1
tree3ffbfad7e0c608bace637fa9c73d9c009e271eb8
parentc5443745bd596fa6f7a9d5a6e6e90b03abb28463
re PR libstdc++/16956 ([3.4 only] std::stringbuf::seekoff return wrong position value)

2004-08-12  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/16956
* include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
to the returned value, reorganize a bit.
* testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
* testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.

* testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
* testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.

From-SVN: r85910
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/sstream.tcc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc