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
concurrence_lock_error
concurrence_unlock_error
debug_allocator
enc_filebuf
ext_pointer
forced_error
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
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
special_functions Fix dg-require before dg-run directives in testsuite. 2016-09-14 15:37:23 +02:00
stdio_filebuf
stdio_sync_filebuf
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
vstring Avoid reallocation for basic_string::clear() 2016-09-23 18:25:34 +01:00
concept_checks.cc
headers.cc
median.cc
pod_char_traits.cc