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 |
10 | |
11 | #include <string> |
12 | #include <utility> |
13 | |
14 | #include "test_macros.h" |
15 | |
16 | static_assert(!noexcept(std::operator""s (std::declval<const char*>(), std::declval<int>())), "" ); |
17 | #ifndef TEST_HAS_NO_CHAR8_T |
18 | static_assert(!noexcept(std::operator""s (std::declval<const char8_t*>(), std::declval<int>())), "" ); |
19 | #endif |
20 | static_assert(!noexcept(std::operator""s (str: std::declval<const char16_t*>(), len: std::declval<int>())), "" ); |
21 | static_assert(!noexcept(std::operator""s (str: std::declval<const char32_t*>(), len: std::declval<int>())), "" ); |
22 | #ifndef TEST_HAS_NO_WIDE_CHARACTERS |
23 | static_assert(!noexcept(std::operator""s (str: std::declval<const wchar_t*>(), len: std::declval<int>())), "" ); |
24 | #endif |
25 | |