d23b464e21
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@105254 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
653 B
C++
26 lines
653 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// <locale>
|
|
|
|
// wstring_convert<Codecvt, Elem, Wide_alloc, Byte_alloc>
|
|
|
|
// state_type state() const;
|
|
|
|
#include <locale>
|
|
#include <codecvt>
|
|
|
|
int main()
|
|
{
|
|
typedef std::codecvt_utf8<wchar_t> Codecvt;
|
|
typedef std::wstring_convert<Codecvt> Myconv;
|
|
Myconv myconv;
|
|
std::mbstate_t s = myconv.state();
|
|
}
|