[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / libcxx / test / std / input.output / iostream.objects / wide.stream.objects / wcin.pass.cpp
blobc653b2f60678b63474823a87e27947d6f12cada4
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // XFAIL: libcpp-has-no-stdin
11 // <iostream>
13 // istream wcin;
15 #include <iostream>
16 #include <cassert>
18 #include "test_macros.h"
20 int main(int, char**)
22 #if 0
23 std::wcout << L"Hello World!\n";
24 int i;
25 std::wcout << L"Enter a number: ";
26 std::wcin >> i;
27 std::wcout << L"The number is : " << i << L'\n';
28 #else // 0
29 #ifdef _LIBCPP_HAS_NO_STDOUT
30 assert(std::wcin.tie() == NULL);
31 #else
32 assert(std::wcin.tie() == &std::wcout);
33 #endif
34 #endif
36 return 0;