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 cin; 12 13 // FILE_DEPENDENCIES: ../send-stdin.sh 14 // RUN: %{build} 15 // RUN: %{exec} bash send-stdin.sh "%t.exe" "1234" 16 17 #include <iostream> 18 #include <cassert> 19 20 int main(int, char**) { 21 int i; 22 std::cin >> i; 23 assert(i == 1234); 24 return 0; 25 } 26