gcc/libstdc++-v3/testsuite/util
François Dumont 9662c9526f
libstdc++: Add _GLIBCXX_DEBUG checks on unordered container local_iterator
Complete tests on  _GLIBCXX_DEBUG checks in include/debug/safe_local_iterator.h.

Fix several tests not testing the container corresponding to their location in the
testsuite directory.

libstdc++-v3/ChangeLog:

	* testsuite/util/debug/unordered_checks.h (fill_container): New helper method.
	(use_erased_local_iterator, invalid_local_iterator_pre_increment)
	(invalid_local_iterator_post_increment, invalid_local_iterator_compare)
	(invalid_local_iterator_range): Use latter.
	(fill_and_get_local_iterator): New, use fill_container.
	(use_invalid_local_iterator): Use latter.
	(invalid_local_iterator_arrow_operator): New test function.
	(invalid_local_iterator_copy_instantiation): New test function.
	(invalid_local_iterator_move_instantiation): New test function.
	(invalid_local_iterator_copy_assignment): New test function.
	(invalid_local_iterator_move_assignment): New test function.
	(invalid_local_iterator_const_conversion): New test function.
	* testsuite/23_containers/unordered_map/debug/invalid_local_iterator_arrow_operator_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_map/debug/invalid_local_iterator_const_conversion_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_map/debug/invalid_local_iterator_copy_assignment_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_map/debug/invalid_local_iterator_copy_construction_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_map/debug/invalid_local_iterator_move_assignment_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_map/debug/invalid_local_iterator_move_construction_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_map/debug/max_load_factor_neg.cc: Test unordered_map.
	* testsuite/23_containers/unordered_multimap/debug/begin2_neg.cc: Test unordered_multimap.
	* testsuite/23_containers/unordered_multimap/debug/bucket_size_neg.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/debug/cbegin_neg.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/debug/cend_neg.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/debug/end1_neg.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/debug/end2_neg.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/debug/invalid_local_iterator_arrow_operator_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multimap/debug/invalid_local_iterator_const_conversion_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multimap/debug/invalid_local_iterator_copy_assignment_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multimap/debug/invalid_local_iterator_copy_construction_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multimap/debug/invalid_local_iterator_move_assignment_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multimap/debug/invalid_local_iterator_move_construction_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multimap/debug/max_load_factor_neg.cc:
	Test unordered_multimap.
	* testsuite/23_containers/unordered_multiset/debug/invalid_local_iterator_arrow_operator_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multiset/debug/invalid_local_iterator_const_conversion_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multiset/debug/invalid_local_iterator_copy_assignment_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multiset/debug/invalid_local_iterator_copy_construction_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multiset/debug/invalid_local_iterator_move_assignment_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_multiset/debug/invalid_local_iterator_move_construction_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_set/debug/invalid_local_iterator_arrow_operator_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_set/debug/invalid_local_iterator_const_conversion_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_set/debug/invalid_local_iterator_copy_assignment_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_set/debug/invalid_local_iterator_copy_construction_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_set/debug/invalid_local_iterator_move_assignment_neg.cc:
	New test case.
	* testsuite/23_containers/unordered_set/debug/invalid_local_iterator_move_construction_neg.cc:
	New test case.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
2025-04-18 21:26:46 +02:00
..
atomic Update copyright years. 2025-01-02 11:59:57 +01:00
common_type Update copyright years. 2025-01-02 11:59:57 +01:00
debug libstdc++: Add _GLIBCXX_DEBUG checks on unordered container local_iterator 2025-04-18 21:26:46 +02:00
exception Update copyright years. 2025-01-02 11:59:57 +01:00
hash_fn Update copyright years. 2025-01-02 11:59:57 +01:00
io Update copyright years. 2025-01-02 11:59:57 +01:00
native_type Update copyright years. 2025-01-02 11:59:57 +01:00
performance Update copyright years. 2025-01-02 11:59:57 +01:00
pstl libstdc++: Fix typos in MemoryChecker assertion messages in PSTL tests 2024-03-19 15:20:07 +00:00
regression Update copyright years. 2025-01-02 11:59:57 +01:00
statistic Update copyright years. 2025-01-02 11:59:57 +01:00
thread Update copyright years. 2025-01-02 11:59:57 +01:00
replacement_memory_operators.h Update copyright years. 2025-01-02 11:59:57 +01:00
slow_clock.h Update copyright years. 2025-01-02 11:59:57 +01:00
specfun_testcase.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_abi.cc libstdc++: Fix gnu.ver CXXABI_1.3.16 for Solaris [PR118701] 2025-02-05 09:59:56 +01:00
testsuite_abi.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_abi_check.cc Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_allocator.cc Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_allocator.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_api.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_character.cc Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_character.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_common_types.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_container_traits.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_containergen.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_containers.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_counter_type.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_error.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_fs.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_greedy_ops.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_hooks.cc Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_hooks.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_io.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_iterators.h libstdc++: Implement formatters for pair and tuple [PR109162] 2025-04-16 12:20:56 +02:00
testsuite_new_operators.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_performance.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_random.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_regex.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_rng.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_rvalref.h Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_shared.cc Update copyright years. 2025-01-02 11:59:57 +01:00
testsuite_string.h
testsuite_tr1.h Update copyright years. 2025-01-02 11:59:57 +01:00