gcc/libstdc++-v3/testsuite/27_io
Jonathan Wakely 16c067fa4a PR libstdc++/81338 correctly manage string capacity
Backport from mainline
2017-07-10  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/81338
	* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
	Declare basic_stringbuf to be a friend.
	* include/bits/sstream.tcc (basic_stringbuf::overflow)
	[_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
	* include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
	length to buffer length.
	* testsuite/27_io/basic_stringstream/assign/81338.cc: New.

From-SVN: r251652
2017-09-04 13:24:33 +01:00
..
basic_filebuf
basic_fstream PR libstdc++/53984 handle exceptions in basic_istream::sentry 2017-08-14 13:14:01 +01:00
basic_ifstream
basic_ios PR libstdc++/66145 ensure new ABI for ios::failure tests 2017-02-03 19:26:51 +00:00
basic_iostream
basic_istream PR libstdc++/53984 handle exceptions in basic_istream::sentry 2017-08-14 13:14:01 +01:00
basic_istringstream
basic_ofstream
basic_ostream PR libstdc++/66145 ensure new ABI for ios::failure tests 2017-02-03 19:26:51 +00:00
basic_ostringstream
basic_streambuf
basic_stringbuf
basic_stringstream PR libstdc++/81338 correctly manage string capacity 2017-09-04 13:24:33 +01:00
fpos
headers
ios_base PR libstdc++/66145 ensure new ABI for ios::failure tests 2017-02-03 19:26:51 +00:00
manipulators
objects
types
rvalue_streams-2.cc PR libstdc++/80675, PR libstdc++/80940 2017-06-22 00:09:46 +03:00
rvalue_streams.cc