gcc/libstdc++-v3/testsuite/21_strings/basic_string
Jonathan Wakely 1319041924 Avoid reallocation for basic_string::clear()
PR libstdc++/56166
	PR libstdc++/77582
	* include/bits/basic_string.h (basic_string::clear()): Drop reference
	and use empty rep.
	* include/ext/rc_string_base.h (__rc_string_base::_M_clear()):
	Likewise.
	* testsuite/21_strings/basic_string/56166.cc: New.
	* testsuite/ext/vstring/modifiers/clear/56166.cc: New.

From-SVN: r240447
2016-09-23 18:25:34 +01:00
..
allocator Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
capacity Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
cons Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
element_access Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
inserters_extractors Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
literals Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
modifiers Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
numeric_conversions Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
operations PR 77264 constrain new std::basic_string overloads 2016-08-17 14:38:52 +01:00
operators Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
range_access Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
requirements Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
types Update copyright years. 2016-01-04 15:30:50 +01:00
40160.cc Update copyright years. 2016-01-04 15:30:50 +01:00
56166.cc Avoid reallocation for basic_string::clear() 2016-09-23 18:25:34 +01:00
init-list.cc Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
lwg2758.cc Implement LWG 2758. 2016-08-11 17:45:23 +03:00
pthread4.cc Simplify dg-options for tests using pthreads 2016-08-19 17:36:07 +01:00
pthread18185.cc Simplify dg-options for tests using pthreads 2016-08-19 17:36:07 +01:00
pthread33394.cc Update copyright years. 2016-01-04 15:30:50 +01:00