| 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 | // This test hangs on Android devices that lack shell_v2, which was added in |
| 10 | // Android N (API 24). |
| 11 | // UNSUPPORTED: LIBCXX-ANDROID-FIXME && android-device-api={{2[1-3]}} |
| 12 | |
| 13 | // <iostream> |
| 14 | |
| 15 | // wistream wcin; |
| 16 | |
| 17 | // UNSUPPORTED: no-wide-characters |
| 18 | |
| 19 | // RUN: %{build} |
| 20 | // RUN: echo -n 1234 > %t.input |
| 21 | // RUN: %{exec} %t.exe < %t.input |
| 22 | |
| 23 | #include <iostream> |
| 24 | #include <cassert> |
| 25 | |
| 26 | int main(int, char**) { |
| 27 | int i; |
| 28 | std::wcin >> i; |
| 29 | assert(i == 1234); |
| 30 | return 0; |
| 31 | } |
| 32 | |