gcc/libstdc++-v3/testsuite
Jonathan Wakely 118158b646 libstdc++: Fix __gnu_test::input_iterator_wrapper::operator++(int)
I noticed recently that our input_iterator_wrapper utility for writing
tests has the following post-increment operator:

    void
    operator++(int)
    {
      ++*this;
    }

That fails to meet the Cpp17InputIterator requirement that *r++ is
valid. This change makes it return a non-void proxy type that can be
deferenced to produce another proxy, which is convertible to the
value_type. The second proxy converts to const T& to ensure it can't be
written to.

	* testsuite/util/testsuite_iterators.h:
	(input_iterator_wrapper::operator++(int)): Return proxy object.
2020-06-01 18:30:47 +01:00
..
17_intro libstdc++: Add more tests for _E10, _E11 etc. (PR 94901) 2020-05-01 14:49:48 +01:00
18_support libstdc++: Add new testcase for comparison category types 2020-05-27 13:14:17 +01:00
19_diagnostics
20_util c++: Explain fn template argument type/value mismatches [PR66439] 2020-05-18 23:50:14 -04:00
21_strings libstdc++: Fixes for feature test macros (PR 91480) 2020-04-28 23:40:18 +01:00
22_locale
23_containers libstdc++: Fix regression in std::_Construct (PR 94831) 2020-04-28 23:39:38 +01:00
24_iterators libstdc++: Fix std::reverse_iterator comparisons (PR 94354) 2020-05-27 21:58:56 +01:00
25_algorithms libstdc++: Fix function that can't be constexpr in C++11 (PR 95289) 2020-05-23 18:27:35 +01:00
26_numerics libstdc++: Use RDRAND as fallback if RDSEED keeps failing (PR 94087) 2020-05-19 23:04:45 +01:00
27_io libstdc++: Simplify filesystem::path SFINAE constraints 2020-05-23 09:40:16 +01:00
28_regex libstdc++: Add comparison operators for string and regex types 2020-04-17 16:40:11 +01:00
29_atomics libstdc++: Fix atomic<FP>::load (PR 95282) 2020-05-27 22:55:21 +01:00
30_threads libstdc++: Update value of __cpp_lib_jthread macro 2020-04-22 22:54:34 +01:00
abi
backward
config
data
decimal
experimental libstdc++: Fix net::basic_socket::close(error_code&) 2020-05-21 00:59:55 +01:00
ext libstdc++: Avoid errors in allocator's noexcept-specifier (PR 89510) 2020-04-30 16:01:43 +01:00
lib libstdc++: Fix PSTL tests to run correctly with newer Thread Building Blocks 2020-04-21 01:05:13 -07:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions
std libstdc++: Fix view adaptors for mixed-const sentinels and iterators (PR 95322) 2020-05-27 22:08:15 +01:00
tr1
tr2
util libstdc++: Fix __gnu_test::input_iterator_wrapper::operator++(int) 2020-06-01 18:30:47 +01:00
Makefile.am libstdc++: Enable simple invocation of runtest in testsuite 2020-05-21 14:16:19 +01:00
Makefile.in libstdc++: Enable simple invocation of runtest in testsuite 2020-05-21 14:16:19 +01:00