gcc/libstdc++-v3/testsuite
Jonathan Wakely a2b5fdcbdb Implement N4258 (Cleaning-up noexcept in the Library rev 3)
* doc/xml/manual/intro.xml: Document LWG 2108 status.
	* include/bits/alloc_traits.h (allocator_traits::is_always_equal):
	Define.
	* include/bits/allocator.h (allocator::is_always_equal): Likewise.
	* include/bits/forward_list.h
	(forward_list::operator=(forward_list&&)): Use __bool_constant.
	(forward_list::swap(forward_list&)): Add noexcept.
	* include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
	Likewise.
	(_Hashtable::swap(_Hashtable&)): Likewise.
	* include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
	Use _Alloc_traits::is_always_equal.
	(deque::operator=(deque&&)): Likewise.
	(deque::_M_move_assign1(deque&&, false_type)): Add comment and use
	__bool_constant.
	(swap(deque&, deque&)): Add noexcept.
	* include/bits/stl_list.h (list::operator=(list&&)): Use
	__bool_constant.
	(swap(list&, list&)): Add noexcept.
	* include/bits/stl_map.h (map::swap(map&)): Include _Compare in
	noexcept.
	(swap(map&, map&)): Add noexcept.
	* include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
	_Compare in noexcept.
	(swap(multimap&, multimap&)): Add noexcept.
	* include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
	_Compare in noexcept.
	(swap(multiset&, multiset&)): Add noexcept.
	* include/bits/stl_set.h (set::swap(set&)): Include _Compare in
	noexcept.
	(swap(set&, set&)): Add noexcept.
	* include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
	_Compare in noexcept.
	(_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
	is_always_equal.
	* include/bits/stl_vector.h (vector::operator=(vector&&)): Use
	__bool_constant.
	(swap(vector&, vector&)): Add noexcept.
	* include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
	swap(unordered_multimap& unordered_multimap&)): Add noexcept.
	* include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
	swap(unordered_multiset& unordered_multiset&)): Add noexcept.
	* include/ext/alloc_traits.h (__allocator_always_compares_equal):
	Remove.
	(__alloc_traits::_S_always_equal()): Use is_always_equal instead of
	__allocator_always_compares_equal.
	* include/ext/array_allocator.h (array_allocator::is_always_equal):
	Define.
	* include/std/scoped_allocator (__any_of, __propagate_on_copy,
	__propagate_on_move, __propagate_on_swap): Remove.
	(scoped_allocator_adaptor::propagate_on_container_copy_assignment,
	scoped_allocator_adaptor::propagate_on_container_move_assignment,
	scoped_allocator_adaptor::propagate_on_container_swap): Define with
	__and_ instead of __any_of.
	(scoped_allocator_adaptor::is_always_equal): Define.
	* testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
	* testsuite/20_util/scoped_allocator/propagation.cc: Make traits
	derive from true_type or false_type.
	* testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
	is_always_equal member and remove the trait specialization.
	* testsuite/23_containers/vector/52591.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
	Adjust dg-error line number.
	* testsuite/23_containers/deque/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/
	constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
	Likewise.
	* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
	Likewise.
	* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
	Likewise.
	* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
	Likewise.
	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
	Likewise.
	* testsuite/23_containers/vector/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/
	constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
	Likewise.

From-SVN: r225081
2015-06-26 21:10:24 +01:00
..
17_intro [Patch Testsuite] Make all_attributes.cc in to (almost_)all_attributes.cc for ARM. 2015-03-20 17:20:12 +00:00
18_support exception (uncaught_exceptions): Add comment. 2015-04-28 13:07:40 +01:00
19_diagnostics std_c++0x_neg.cc: Add -std=c++98. 2015-05-09 00:50:30 -04:00
20_util Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
21_strings re PR libstdc++/64657 (Support iterators with overloaded operator-comma) 2015-04-29 16:22:13 +01:00
22_locale re PR libstdc++/66441 (wstring_convert not working correctly) 2015-06-08 14:03:45 +01:00
23_containers Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
24_iterators range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR on overloads for arrays. 2015-01-19 14:37:03 +00:00
25_algorithms tuple (__is_tuple_like_impl): Disambiguate array in debug and profile modes. 2015-06-12 00:22:19 +01:00
26_numerics 1.cc: Use non-negative rho argument. 2015-06-22 16:09:32 +01:00
27_io [libstdc++-v3]Add _GLIBCXX_HAVE_LIMIT_FSIZE to guard 27_io/fpos/14775.cc. 2015-06-02 08:54:25 +00:00
28_regex regex.tcc: Handle regex_constants::__polynomial. 2015-04-28 04:16:48 +00:00
29_atomics [PATCH][libstc++v3]Add new dg-require-thread-fence directive. 2015-04-22 14:01:02 +00:00
30_threads shared_mutex (__shared_mutex_pthread, [...]): New helper types implementing the shared mutex requirements. 2015-06-05 17:31:05 +01:00
abi Update copyright years. 2015-01-05 13:33:28 +01:00
backward Update copyright years. 2015-01-05 13:33:28 +01:00
config Update copyright years. 2015-01-05 13:33:28 +01:00
data make_graph_test_infos.xml: Edit. 2011-08-15 00:51:06 +00:00
decimal Update copyright years. 2015-01-05 13:33:28 +01:00
experimental ops.cc (stat_type): Define alias for struct stat and use throughout the file. 2015-05-15 19:37:25 +01:00
ext std_c++0x_neg.cc: Add -std=c++98. 2015-05-09 00:50:30 -04:00
lib libstdc++.exp (libstdc++_init): Unset LANGUAGE environment variable. 2015-06-01 12:57:33 +01:00
libstdc++-abi Update copyright years. 2015-01-05 13:33:28 +01:00
libstdc++-dg Update copyright years. 2015-01-05 13:33:28 +01:00
libstdc++-prettyprinters Update copyright years. 2015-01-05 13:33:28 +01:00
libstdc++-xmethods xmethods.py (UniquePtrMethodsMatcher): Add operator-> support. 2015-05-26 23:06:55 +00:00
performance Update copyright years. 2015-01-05 13:33:28 +01:00
tr1 Use atomics in guard.cc. 2015-06-12 09:49:41 +00:00
tr2 Update copyright years. 2015-01-05 13:33:28 +01:00
util locale_conv.h: Fix copyright years. 2015-05-26 10:52:25 +01:00
Makefile.am Update copyright years. 2015-01-05 13:33:28 +01:00
Makefile.in libstdc++: Bump to automake 1.11.6 2015-05-13 10:51:03 +00:00