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:
parent
792adb8d22
commit
8e0da56f18
3 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue