diff options
Diffstat (limited to 'test/std/input.output/iostream.objects/wide.stream.objects/wcerr.pass.cpp')
| -rw-r--r-- | test/std/input.output/iostream.objects/wide.stream.objects/wcerr.pass.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/std/input.output/iostream.objects/wide.stream.objects/wcerr.pass.cpp b/test/std/input.output/iostream.objects/wide.stream.objects/wcerr.pass.cpp new file mode 100644 index 0000000000000..b050781671e66 --- /dev/null +++ b/test/std/input.output/iostream.objects/wide.stream.objects/wcerr.pass.cpp @@ -0,0 +1,29 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <iostream> + +// istream wcerr; + +#include <iostream> +#include <cassert> + +int main() +{ +#if 0 + std::wcerr << L"Hello World!\n"; +#else +#ifdef _LIBCPP_HAS_NO_STDOUT + assert(std::wcerr.tie() == NULL); +#else + assert(std::wcerr.tie() == &std::wcout); +#endif + assert(std::wcerr.flags() & std::ios_base::unitbuf); +#endif // 0 +} |
