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 
12 // struct default_sentinel_t;
13 // inline constexpr default_sentinel_t default_sentinel;
14 
15 #include <iterator>
16 
17 #include <concepts>
18 #include <type_traits>
19 
20 #include "test_macros.h"
21 
22 int main(int, char**) {
23   static_assert(std::is_empty_v<std::default_sentinel_t>);
24   static_assert(std::semiregular<std::default_sentinel_t>);
25 
26   static_assert(std::same_as<decltype(std::default_sentinel), const std::default_sentinel_t>);
27 
28   std::default_sentinel_t s1;
29   auto s2 = std::default_sentinel_t{};
30   s2 = s1;
31 
32   return 0;
33 }
34