libcxx

libcxx mirror with random patches
git clone https://git.neptards.moe/neptards/libcxx.git
Log | Files | Refs

cout.pass.cpp (656B)


      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // XFAIL: libcpp-has-no-stdout
     11 
     12 // <iostream>
     13 
     14 // istream cout;
     15 
     16 #include <iostream>
     17 
     18 int main()
     19 {
     20 #if 0
     21     std::cout << "Hello World!\n";
     22     int i;
     23     std::cout << "Enter a number: ";
     24     std::cin >> i;
     25     std::cout << "The number is : " << i << '\n';
     26 #else  // 0
     27     (void)std::cout;
     28 #endif
     29 }