1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // XFAIL: libcpp-has-no-stdin
18 #include "test_macros.h"
23 std::wcout
<< L
"Hello World!\n";
25 std::wcout
<< L
"Enter a number: ";
27 std::wcout
<< L
"The number is : " << i
<< L
'\n';
29 #ifdef _LIBCPP_HAS_NO_STDOUT
30 assert(std::wcin
.tie() == NULL
);
32 assert(std::wcin
.tie() == &std::wcout
);