[DirectX] Set the EnableRawAndStructuredBuffers shader flag (#122667)
[llvm-project.git] / libcxx / test / std / strings / string.view / string.view.cons / nullptr.compile.pass.cpp
blobd7035f82fe3792f083adad44f46354e35962c7bf
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, c++20
11 // <string_view>
13 // basic_string_view(nullptr_t) = delete; // C++23
15 #include <string_view>
16 #include <type_traits>
18 static_assert(!std::is_convertible_v<decltype(nullptr), std::string_view>);
19 static_assert(!std::is_constructible_v<std::string_view, decltype(nullptr)>);
20 static_assert(!std::is_assignable_v<std::string_view, decltype(nullptr)>);