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