gcc/libstdc++-v3/testsuite
François Dumont 29dbb034cb re PR libstdc++/71181 (Reserving in unordered_map doesn't reserve enough)
2016-06-20  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/71181
	* include/tr1/hashtable_policy.h
	(_Prime_rehash_policy::_M_next_bkt): Make past-the-end iterator
	dereferenceable to avoid check on lower_bound result.
	(_Prime_rehash_policy::_M_bkt_for_elements): Call latter.
	(_Prime_rehash_policy::_M_need_rehash): Likewise.
	* src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
	Always return a value greater than input value. Set _M_next_resize to
	max value when reaching highest prime number.
	* src/shared/hashtable-aux.cc (__prime_list): Add comment about sentinel
	being now useless.
	* testsuite/23_containers/unordered_set/hash_policy/71181.cc: New.
	* testsuite/23_containers/unordered_set/hash_policy/power2_rehash.cc
	(test02): New.
	* testsuite/23_containers/unordered_set/hash_policy/prime_rehash.cc: New.
	* testsuite/23_containers/unordered_set/hash_policy/rehash.cc:
	Fix indentation.

From-SVN: r237617
2016-06-20 20:04:25 +00:00
..
17_intro libstdc++/69406 Fix test to check for supported headers 2016-01-21 13:33:27 +00:00
18_support Make use of extensions more explicit in libstdc++ tests 2016-04-18 16:44:25 +01:00
19_diagnostics Update copyright years. 2016-01-04 15:30:50 +01:00
20_util Provide swappable traits (p0185r1) 2016-06-16 16:07:19 +01:00
21_strings Test for C99 stdlib.h functions with -std=c++98 2016-02-04 23:47:21 +00:00
22_locale libstdc++/69703 ignore endianness in codecvt_utf8 2016-04-19 19:02:46 +01:00
23_containers re PR libstdc++/71181 (Reserving in unordered_map doesn't reserve enough) 2016-06-20 20:04:25 +00:00
24_iterators libstdc++/70766 use std::addressof instead of operator& 2016-04-28 13:33:07 +01:00
25_algorithms libstdc++/71545 fix debug checks in binary search algorithms 2016-06-17 19:28:34 +01:00
26_numerics PR libstdc++/41759 reword static assertions in <random> 2016-04-18 19:03:50 +01:00
27_io Update copyright years. 2016-01-04 15:30:50 +01:00
28_regex re PR libstdc++/70745 (Wrong handling of regex_constant::match_not_eow and regex_constant::match_not_bow) 2016-04-23 03:58:37 +00:00
29_atomics libstdc++/70766 use std::addressof instead of operator& 2016-04-28 13:33:07 +01:00
30_threads libstdc++/70766 use std::addressof instead of operator& 2016-04-28 13:33:07 +01:00
abi Update copyright years. 2016-01-04 15:30:50 +01:00
backward Update copyright years. 2016-01-04 15:30:50 +01:00
config Update copyright years. 2016-01-04 15:30:50 +01:00
data make_graph_test_infos.xml: Edit. 2011-08-15 00:51:06 +00:00
decimal Make use of extensions more explicit in libstdc++ tests 2016-04-18 16:44:25 +01:00
experimental libstdc++/71320 Add or remove file permissions correctly 2016-06-06 16:50:01 +01:00
ext Revert empty class parameter passing ABI changes. 2016-04-14 12:23:06 -04:00
lib Enable dg-reqire-sharedlib on Solaris 2016-05-05 19:54:42 +00:00
libstdc++-abi Update copyright years. 2016-01-04 15:30:50 +01:00
libstdc++-dg Implement TR29124 C++ special Math Functions. 2016-01-14 18:12:43 +00:00
libstdc++-prettyprinters Ensure stdout is newline terminated for status wrappers. 2016-02-09 20:18:10 +00:00
libstdc++-xmethods Update copyright years. 2016-01-04 15:30:50 +01:00
performance c++config (_GLIBCXX14_USE_CONSTEXPR): New. 2016-05-24 20:55:57 +00:00
special_functions Fix FAIL: special_functions/18_riemann_zeta/check_value.cc (test for excess errors) 2016-02-12 21:23:11 +00:00
tr1 Remove trailing whitespace from libstdc++-v3 files 2016-04-29 17:11:43 +01:00
tr2 Update copyright years. 2016-01-04 15:30:50 +01:00
util libstdc++/71545 fix debug checks in binary search algorithms 2016-06-17 19:28:34 +01:00
Makefile.am Update copyright years. 2016-01-04 15:30:50 +01:00
Makefile.in libstdc++-v3/fragment.am (AM_CPPFLAGS): Add CPPFLAGS 2015-07-24 07:05:19 +00:00