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-has-no-incomplete-ranges 11 12 // sentinel() = default; 13 14 #include <cassert> 15 #include <ranges> 16 17 #include "test_macros.h" 18 #include "../types.h" 19 test()20constexpr bool test() { 21 std::ranges::sentinel_t<std::ranges::join_view<CopyableParent>> sent; 22 (void) sent; 23 24 return true; 25 } 26 main(int,char **)27int main(int, char**) { 28 test(); 29 static_assert(test()); 30 31 return 0; 32 } 33