1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 #include <test_macros.h>
13 // UNSUPPORTED: c++98, c++03, c++11, c++14
15 // template <class IntegerType>
16 // constexpr byte operator >>(byte b, IntegerType shift) noexcept;
17 // These functions shall not participate in overload resolution unless
18 // is_integral_v<IntegerType> is true.
21 constexpr std::byte b1{static_cast<std::byte>(1)};
22 constexpr std::byte b2 = b1 >> 2.0f;