[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / iterators / predef.iterators / default.sentinel / default.sentinel.pass.cpp
blob2a6b1e53c0c86a1f17a22a46e72d553a1fd423e2
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 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
11 // struct default_sentinel_t;
12 // inline constexpr default_sentinel_t default_sentinel;
14 #include <iterator>
16 #include <concepts>
17 #include <type_traits>
19 #include "test_macros.h"
21 int main(int, char**) {
22 static_assert(std::is_empty_v<std::default_sentinel_t>);
23 static_assert(std::semiregular<std::default_sentinel_t>);
25 static_assert(std::same_as<decltype(std::default_sentinel), const std::default_sentinel_t>);
27 std::default_sentinel_t s1;
28 auto s2 = std::default_sentinel_t{};
29 s2 = s1;
31 return 0;