gcc/libstdc++-v3/testsuite/24_iterators
Jonathan Wakely 52b769437a libstdc++: Fix test that fails in C++20 mode
This test was written to verify that the LWG 3265 changes work. But
those changes were superseded by LWG 3435, and the test is now incorrect
according to the current draft. The assignment operator is now
constrained to also require convertibility, which makes the test fail.

Change the Iter type to be convertible from int*, but make it throw an
exception if that conversion is used. Change the test from compile-only
to run, so we verify that the exception isn't thrown.

libstdc++-v3/ChangeLog:

	* testsuite/24_iterators/move_iterator/dr3265.cc: Fix test to
	account for LWG 3435 resolution.
2021-11-26 22:56:51 +00:00
..
associated_types Update copyright years. 2021-01-04 10:26:59 +01:00
back_insert_iterator libstdc++: Implement P2325 changes to default-constructibility of views 2021-06-17 22:29:03 -04:00
bidirectional Update copyright years. 2021-01-04 10:26:59 +01:00
common_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
contiguous Update copyright years. 2021-01-04 10:26:59 +01:00
counted_iterator Update copyright years. 2021-01-04 10:26:59 +01:00
customization_points libstdc++: Add [[nodiscard]] to iterators and related utilities 2021-08-04 12:54:28 +01:00
forward Update copyright years. 2021-01-04 10:26:59 +01:00
front_insert_iterator libstdc++: Implement P2325 changes to default-constructibility of views 2021-06-17 22:29:03 -04:00
headers/iterator libstdc++: Change [range.iter.op] functions to function objects [PR 100768] 2021-05-26 19:15:34 +01:00
indirect_callable Update copyright years. 2021-01-04 10:26:59 +01:00
input Update copyright years. 2021-01-04 10:26:59 +01:00
insert_iterator libstdc++: Implement P2325 changes to default-constructibility of views 2021-06-17 22:29:03 -04:00
istream_iterator libstdc++: Add [[nodiscard]] to iterators and related utilities 2021-08-04 12:54:28 +01:00
istreambuf_iterator libstdc++: Add [[nodiscard]] to iterators and related utilities 2021-08-04 12:54:28 +01:00
move_iterator libstdc++: Fix test that fails in C++20 mode 2021-11-26 22:56:51 +00:00
normal_iterator libstdc++: Specialize std::pointer_traits<__normal_iterator<I,C>> 2021-09-28 20:22:50 +01:00
operations libstdc++: Fix _ForwardIteratorConcept for __gnu_debug::vector<bool> 2021-10-01 15:04:02 +01:00
ostream_iterator libstdc++: Implement P2325 changes to default-constructibility of views 2021-06-17 22:29:03 -04:00
ostreambuf_iterator libstdc++: Add [[nodiscard]] to iterators and related utilities 2021-08-04 12:54:28 +01:00
output libstdc++: Fix tests that use invalid types in ordered containers 2021-09-28 20:22:51 +01:00
random_access Update copyright years. 2021-01-04 10:26:59 +01:00
range_access libstdc++: Add [[nodiscard]] to iterators and related utilities 2021-08-04 12:54:28 +01:00
range_operations libstdc++: Implement LWG 3392 for std::ranges::distance 2021-10-01 20:36:54 +01:00
reverse_iterator libstdc++: Use conditional noexcept in std::reverse_iterator [PR 94418] 2021-10-01 20:34:46 +01:00
aliases.cc Update copyright years. 2021-01-04 10:26:59 +01:00
container_access.cc libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-10 16:22:54 +01:00