gcc/libstdc++-v3/testsuite/ext
Jonathan Wakely 78ed0f80c3 Fix tests that use allocators with incorrect value types
As a GNU extension we allow containers to be instantiated with
allocators that use a different value type from the container, and
automatically rebind the allocator to the correct type. This extension
is disabled in strict modes (when __STRICT_ANSI__ is defined, i.e.
-std=c++NN dialects). These testcases unintentionally rely on the
extension and so fail for strict modes.

Tests which intentionally make use of the extension will still fail in
strict dialects, but will be addressed in a later change.

	* testsuite/20_util/scoped_allocator/1.cc: Use allocator with correct
	value type for the container.
	* testsuite/23_containers/forward_list/cons/14.cc: Likewise.
	* testsuite/23_containers/map/56613.cc: Likewise.
	* testsuite/23_containers/unordered_map/55043.cc: Likewise.
	* testsuite/23_containers/unordered_map/allocator/copy.cc: Likewise.
	* testsuite/23_containers/unordered_map/allocator/copy_assign.cc:
	Likewise.
	* testsuite/23_containers/unordered_map/allocator/minimal.cc:
	Likewise.
	* testsuite/23_containers/unordered_map/allocator/move.cc: Likewise.
	* testsuite/23_containers/unordered_map/allocator/move_assign.cc:
	Likewise.
	* testsuite/23_containers/unordered_map/allocator/noexcept.cc:
	Likewise.
	* testsuite/23_containers/unordered_map/cons/81891.cc: Likewise.
	* testsuite/23_containers/unordered_map/requirements/exception/
	basic.cc: Likewise.
	* testsuite/23_containers/unordered_map/requirements/exception/
	generation_prohibited.cc: Likewise.
	* testsuite/23_containers/unordered_map/requirements/exception/
	propagation_consistent.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/allocator/copy.cc:
	Likewise.
	* testsuite/23_containers/unordered_multimap/allocator/copy_assign.cc:
	Likewise.
	* testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
	Likewise.
	* testsuite/23_containers/unordered_multimap/allocator/move.cc:
	Likewise.
	* testsuite/23_containers/unordered_multimap/allocator/move_assign.cc:
	Likewise.
	* testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
	Likewise.
	* testsuite/23_containers/unordered_multimap/requirements/exception/
	basic.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/requirements/exception/
	generation_prohibited.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/requirements/exception/
	propagation_consistent.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/requirements/
	explicit_instantiation/5.cc: Likewise.
	* testsuite/ext/malloc_allocator/sanity.cc: Likewise.

From-SVN: r265331
2018-10-19 22:49:40 +01:00
..
array_allocator Update copyright years. 2018-01-03 11:03:58 +01:00
bitmap_allocator Add missing dg-require-cstdint directives to tests 2018-07-26 15:03:28 +01:00
codecvt Update copyright years. 2018-01-03 11:03:58 +01:00
concurrence_lock_error Update copyright years. 2018-01-03 11:03:58 +01:00
concurrence_unlock_error Update copyright years. 2018-01-03 11:03:58 +01:00
debug_allocator Make ext allocators support heterogeneous equality comparison 2018-10-11 12:32:29 +01:00
enc_filebuf Update copyright years. 2018-01-03 11:03:58 +01:00
ext_pointer Make ext allocators support heterogeneous equality comparison 2018-10-11 12:32:29 +01:00
forced_error Update copyright years. 2018-01-03 11:03:58 +01:00
iota Update copyright years. 2018-01-03 11:03:58 +01:00
is_heap Update copyright years. 2018-01-03 11:03:58 +01:00
is_sorted Update copyright years. 2018-01-03 11:03:58 +01:00
malloc_allocator Fix tests that use allocators with incorrect value types 2018-10-19 22:49:40 +01:00
mt_allocator Add missing dg-require-cstdint directives to tests 2018-07-26 15:03:28 +01:00
new_allocator Make ext allocators support heterogeneous equality comparison 2018-10-11 12:32:29 +01:00
numeric_traits Update copyright years. 2018-01-03 11:03:58 +01:00
pb_ds Add missing dg-require-cstdint directives to tests 2018-07-26 15:03:28 +01:00
pool_allocator Add missing dg-require-cstdint directives to tests 2018-07-26 15:03:28 +01:00
profile Fix tests that fail when built with different options 2018-10-18 21:04:55 +01:00
random P0935R0 Eradicating unnecessarily explicit default constructors 2018-06-14 14:32:53 +01:00
rope Rope iterators: don't retain pointers when copied 2018-08-14 12:23:50 +01:00
shared_ptr Update copyright years. 2018-01-03 11:03:58 +01:00
slist Update copyright years. 2018-01-03 11:03:58 +01:00
special_functions Disable tests that only pass for GNU dialects 2018-10-19 22:49:32 +01:00
stdio_filebuf Update copyright years. 2018-01-03 11:03:58 +01:00
stdio_sync_filebuf 10.cc: Add dg-require-fileio. 2018-08-31 15:09:47 -04:00
throw_allocator Add missing dg-require-cstdint directives to tests 2018-07-26 15:03:28 +01:00
throw_value Update copyright years. 2018-01-03 11:03:58 +01:00
type_traits Update copyright years. 2018-01-03 11:03:58 +01:00
vstring Remove dg-require-cstdint directive from tests 2018-07-26 15:02:26 +01:00
concept_checks.cc Update copyright years. 2018-01-03 11:03:58 +01:00
headers.cc Update copyright years. 2018-01-03 11:03:58 +01:00
median.cc Update copyright years. 2018-01-03 11:03:58 +01:00
pod_char_traits.cc Update copyright years. 2018-01-03 11:03:58 +01:00