mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user