summaryrefslogtreecommitdiff
path: root/test/std/localization/locales/locale.convenience/conversions/conversions.string/state.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/localization/locales/locale.convenience/conversions/conversions.string/state.pass.cpp')
-rw-r--r--test/std/localization/locales/locale.convenience/conversions/conversions.string/state.pass.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/std/localization/locales/locale.convenience/conversions/conversions.string/state.pass.cpp b/test/std/localization/locales/locale.convenience/conversions/conversions.string/state.pass.cpp
new file mode 100644
index 0000000000000..08dfa2558be1e
--- /dev/null
+++ b/test/std/localization/locales/locale.convenience/conversions/conversions.string/state.pass.cpp
@@ -0,0 +1,25 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. 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();
+}