You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/input.output/string.streams
Peter Collingbourne 4b54e0fc2a libcxx: Fix for basic_stringbuf::seekoff() after r320604.
As a result of this change, the basic_stringbuf constructor that
takes a mode ends up leaving __hm_ set to 0, causing the comparison
"__hm_ - __str_.data() < __noff" in seekoff() to succeed, which caused
the function to incorrectly return -1. The fix is to account for the
possibility of __hm_ being 0 when computing the distance from __hm_
to the start of the string.

Differential Revision: https://reviews.llvm.org/D41319

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@321124 91177308-0d34-0410-b5e6-96231b3b80d8
7 years ago
..
istringstream Cleanup _LIBCPP_HAS_NO_<c++11-feature> in the input.output library 8 years ago
ostringstream Cleanup _LIBCPP_HAS_NO_<c++11-feature> in the input.output library 8 years ago
stringbuf libcxx: Fix for basic_stringbuf::seekoff() after r320604. 7 years ago
stringstream Move test into test/std subdirectory. 10 years ago
stringstream.cons [libcxx] [test] Untabify stringstream.cons/string.pass.cpp. NFC. 7 years ago
stringstream.members Move test into test/std subdirectory. 10 years ago