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