1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // UNSUPPORTED: c++03, c++11, c++14, c++17 10 // UNSUPPORTED: libcpp-no-concepts 11 // UNSUPPORTED: libcpp-has-no-incomplete-ranges 12 13 // sentinel() = default; 14 15 #include <cassert> 16 #include <ranges> 17 18 #include "test_macros.h" 19 #include "../types.h" 20 test()21constexpr bool test() { 22 std::ranges::sentinel_t<std::ranges::join_view<CopyableParent>> sent; 23 (void) sent; 24 25 return true; 26 } 27 main(int,char **)28int main(int, char**) { 29 test(); 30 static_assert(test()); 31 32 return 0; 33 } 34