Skip to content

Commit 8e48a6c

Browse files
committed
Add CPO test
1 parent c1981bd commit 8e48a6c

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&&...) {
@@ -79,6 +81,9 @@ static_assert(test(std::ranges::ssize, a));
7981
// views::empty<T> is not a CPO
8082
static_assert(test(std::views::iota, 1));
8183
static_assert(test(std::views::iota, 1, 10));
84+
#if TEST_STD_VER >= 26
85+
static_assert(test(std::views::indices, 10));
86+
#endif
8287
//static_assert(test(std::views::istream<int>, 1);
8388
static_assert(test(std::views::single, 4));
8489

0 commit comments

Comments
 (0)