From 61b9a7258a7693d7f3674a5a1daf7b036ff1d382 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 6 Sep 2015 18:46:46 +0000 Subject: Import libc++ 3.7.0 release (r246257). --- .../locale.stdcvt/codecvt_utf16_encoding.pass.cpp | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 test/std/localization/locale.stdcvt/codecvt_utf16_encoding.pass.cpp (limited to 'test/std/localization/locale.stdcvt/codecvt_utf16_encoding.pass.cpp') diff --git a/test/std/localization/locale.stdcvt/codecvt_utf16_encoding.pass.cpp b/test/std/localization/locale.stdcvt/codecvt_utf16_encoding.pass.cpp new file mode 100644 index 0000000000000..2d12d985b2973 --- /dev/null +++ b/test/std/localization/locale.stdcvt/codecvt_utf16_encoding.pass.cpp @@ -0,0 +1,45 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// + +// template +// class codecvt_utf16 +// : public codecvt +// { +// // unspecified +// }; + +// int encoding() const throw(); + +#include +#include + +int main() +{ + { + typedef std::codecvt_utf16 C; + C c; + int r = c.encoding(); + assert(r == 0); + } + { + typedef std::codecvt_utf16 C; + C c; + int r = c.encoding(); + assert(r == 0); + } + { + typedef std::codecvt_utf16 C; + C c; + int r = c.encoding(); + assert(r == 0); + } +} -- cgit v1.2.3