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 //===----------------------------------------------------------------------===//
8
9 // <iostream>
10
11 // istream wcin;
12
13 // XFAIL: no-wide-characters
14
15 // UNSUPPORTED: executor-has-no-bash
16 // FILE_DEPENDENCIES: ../send-stdin.sh
17 // RUN: %{build}
18 // RUN: %{exec} bash send-stdin.sh "%t.exe" "1234"
19
20 #include <iostream>
21 #include <cassert>
22
main(int,char **)23 int main(int, char**) {
24 int i;
25 std::wcin >> i;
26 assert(i == 1234);
27 return 0;
28 }
29