libstdc++: Add some missing ranges feature-test macro tests

libstdc++-v3/ChangeLog:

	* testsuite/25_algorithms/contains/1.cc: Verify value of
	__cpp_lib_ranges_contains.
	* testsuite/25_algorithms/find_last/1.cc: Verify value of
	__cpp_lib_ranges_find_last.
	* testsuite/26_numerics/iota/2.cc: Verify value of
	__cpp_lib_ranges_iota.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
This commit is contained in:
Patrick Palka 2024-08-22 11:24:07 -04:00
parent 792adb8d22
commit 8e0da56f18
3 changed files with 12 additions and 0 deletions

View file

@ -4,6 +4,10 @@
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
#if __cpp_lib_ranges_contains != 202207L
# error "Feature-test macro __cpp_lib_ranges_contains has wrong value in <algorithm>"
#endif
namespace ranges = std::ranges;
void

View file

@ -4,6 +4,10 @@
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
#if __cpp_lib_ranges_find_last != 202207L
# error "Feature-test macro __cpp_lib_ranges_find_last has wrong value in <algorithm>"
#endif
namespace ranges = std::ranges;
constexpr bool

View file

@ -4,6 +4,10 @@
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
#if __cpp_lib_ranges_iota != 202202L
# error "Feature-test macro __cpp_lib_ranges_iota has wrong value in <numeric>"
#endif
namespace ranges = std::ranges;
void