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 // <locale> 10 11 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS 12 13 // wstring_convert<Codecvt, Elem, Wide_alloc, Byte_alloc> 14 15 // state_type state() const; 16 17 // XFAIL: no-wide-characters 18 19 #include <locale> 20 #include <codecvt> 21 22 #include "test_macros.h" 23 24 int main(int, char**) 25 { 26 typedef std::codecvt_utf8<wchar_t> Codecvt; 27 typedef std::wstring_convert<Codecvt> Myconv; 28 Myconv myconv; 29 std::mbstate_t s = myconv.state(); 30 ((void)s); 31 32 return 0; 33 } 34