Debian Codegraph @

libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/depr.verify.cpp

raw
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 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX26_REMOVED_WSTRING_CONVERT
10
11 // UNSUPPORTED: c++03, c++11, c++14, c++26
12 // UNSUPPORTED: no-wide-characters
13
14 // <codecvt>
15
16 // ensure that wstring_convert is marked as deprecated
17
18 #include <codecvt>
19 #include <locale>
20
21 std::wstring_convert<std::codecvt_utf8<wchar_t>> c1; // expected-warning-re {{'wstring_convert<std::codecvt_utf8<wchar_t{{.*}}>>' is deprecated}}
22 // expected-warning-re@-1 {{'codecvt_utf8<wchar_t{{.*}}>' is deprecated}}