brintos

brintos / llvm-project-archived public Read only

0
0
Text · 848 B · 6eab4a5 Raw
23 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX26_REMOVED_WSTRING_CONVERT10 11// REQUIRES: c++17 || c++20 || c++2312// UNSUPPORTED: no-wide-characters13 14// <codecvt>15 16// ensure that wstring_convert is marked as deprecated17 18#include <codecvt>19#include <locale>20 21std::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}}23