gcc/libstdc++-v3/testsuite/21_strings/basic_string
Jonathan Wakely 11d10beb57 PR libstdc++/79254 simplify exception-safety in copy assignment
PR libstdc++/79254
	* config/abi/pre/gnu.ver: Remove recently added symbols.
	* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
	(basic_string::_M_copy_assign): Remove.
	(basic_string::operator=(const basic_string&)): Don't dispatch to
	_M_copy_assign. If source object is small just deallocate, otherwise
	perform new allocation before making any changes.
	* include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
	(basic_string::_M_copy_assign(const basic_string&, true_type)):
	Remove.
	* testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
	Test cases where the allocators are equal or the string is small.
	* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
	Likewise.

From-SVN: r245085
2017-02-01 11:41:48 +00:00
..
allocator PR libstdc++/79254 simplify exception-safety in copy assignment 2017-02-01 11:41:48 +00:00
capacity Update copyright years. 2017-01-01 13:07:43 +01:00
cons Update copyright years. 2017-01-01 13:07:43 +01:00
element_access Update copyright years. 2017-01-01 13:07:43 +01:00
inserters_extractors Update copyright years. 2017-01-01 13:07:43 +01:00
literals Update copyright years. 2017-01-01 13:07:43 +01:00
modifiers Update copyright years. 2017-01-01 13:07:43 +01:00
numeric_conversions Update copyright years. 2017-01-01 13:07:43 +01:00
operations Add more tests for std::basic_string::find 2017-01-06 21:22:40 +00:00
operators Update copyright years. 2017-01-01 13:07:43 +01:00
range_access Update copyright years. 2017-01-01 13:07:43 +01:00
requirements Update copyright years. 2017-01-01 13:07:43 +01:00
types Update copyright years. 2017-01-01 13:07:43 +01:00
40160.cc Update copyright years. 2017-01-01 13:07:43 +01:00
56166.cc Update copyright years. 2017-01-01 13:07:43 +01:00
init-list.cc Update copyright years. 2017-01-01 13:07:43 +01:00
lwg2758.cc Update copyright years. 2017-01-01 13:07:43 +01:00
pthread4.cc Update copyright years. 2017-01-01 13:07:43 +01:00
pthread18185.cc Update copyright years. 2017-01-01 13:07:43 +01:00
pthread33394.cc Update copyright years. 2017-01-01 13:07:43 +01:00