diff options
Diffstat (limited to 'libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcin.pass.cpp')
-rw-r--r-- | libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcin.pass.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcin.pass.cpp b/libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcin.pass.cpp new file mode 100644 index 00000000000..90a56685a67 --- /dev/null +++ b/libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcin.pass.cpp @@ -0,0 +1,28 @@ +//===----------------------------------------------------------------------===// +// +// 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 wcin; + +#include <iostream> +#include <cassert> + +int main() +{ +#if 0 + std::wcout << L"Hello World!\n"; + int i; + std::wcout << L"Enter a number: "; + std::wcin >> i; + std::wcout << L"The number is : " << i << L'\n'; +#else // 0 + assert(std::wcin.tie() == &std::wcout); +#endif +} |