Skip to content

Commit ef55fe6

Browse files
committed
CI
1 parent 908fb3f commit ef55fe6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#include <type_traits>
1919
#include <utility>
2020

21+
#include "test_macros.h"
22+
2123
// Test for basic properties of C++20 16.3.3.3.6 [customization.point.object].
2224
template <class CPO, class... Args>
2325
constexpr bool test(CPO& o, Args&&...) {
@@ -97,4 +99,7 @@ static_assert(test(std::views::reverse, a));
9799
static_assert(test(std::views::take, a, 10));
98100
//static_assert(test(std::views::take_while, a, [](int x){ return x < 10; }));
99101
static_assert(test(std::views::transform, a, [](int x) { return x + 1; }));
102+
103+
#if TEST_STD_VER >= 23
100104
static_assert(test(std::views::zip_transform, [](int x, int y) { return x + y; }, a, a));
105+
#endif

0 commit comments

Comments
 (0)