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