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 // XFAIL: libcpp-has-no-stdout 10 11 // <iostream> 12 13 // istream cout; 14 15 // FILE_DEPENDENCIES: %t.exe 16 // RUN: %{build} 17 // RUN: %{exec} %t.exe > %t.out 18 // RUN: grep -e 'Hello World!' %t.out 19 20 #include <iostream> 21 22 #include "test_macros.h" 23 24 int main(int, char**) 25 { 26 std::cout << "Hello World!\n"; 27 28 return 0; 29 } 30