gcc/libstdc++-v3/testsuite/ext
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
..
array_allocator Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
bitmap_allocator Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
codecvt Update copyright years. 2016-01-04 15:30:50 +01:00
concurrence_lock_error Update copyright years. 2016-01-04 15:30:50 +01:00
concurrence_unlock_error Update copyright years. 2016-01-04 15:30:50 +01:00
debug_allocator Update copyright years. 2016-01-04 15:30:50 +01:00
enc_filebuf Update copyright years. 2016-01-04 15:30:50 +01:00
ext_pointer Update copyright years. 2016-01-04 15:30:50 +01:00
forced_error Update copyright years. 2016-01-04 15:30:50 +01:00
iota Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
is_heap Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
is_sorted Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
malloc_allocator Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
mt_allocator Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
new_allocator Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
numeric_traits Update copyright years. 2016-01-04 15:30:50 +01:00
pb_ds Adjust testcases for C++17 compatibility 2016-08-17 14:39:05 +01:00
pool_allocator Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
profile Add constexpr to <iterator> and <array> for C++17 2016-08-23 11:13:12 +01:00
random Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
rope Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
slist Update copyright years. 2016-01-04 15:30:50 +01:00
special_functions Fix dg-require before dg-run directives in testsuite. 2016-09-14 15:37:23 +02:00
stdio_filebuf Update copyright years. 2016-01-04 15:30:50 +01:00
stdio_sync_filebuf Update copyright years. 2016-01-04 15:30:50 +01:00
throw_allocator Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
throw_value Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
type_traits libstdc++/69406 Fix test to check for supported headers 2016-01-21 13:33:27 +00:00
vstring Avoid reallocation for basic_string::clear() 2016-09-23 18:25:34 +01:00
concept_checks.cc Update copyright years. 2016-01-04 15:30:50 +01:00
headers.cc Update copyright years. 2016-01-04 15:30:50 +01:00
median.cc Update copyright years. 2016-01-04 15:30:50 +01:00
pod_char_traits.cc Update copyright years. 2016-01-04 15:30:50 +01:00