Files
clang-p2996/libcxx/test/input.output/iostream.objects/narrow.stream.objects/cin.pass.cpp
Howard Hinnant 66dbf0d311 Fixing whitespace problems
llvm-svn: 111758
2010-08-22 00:26:48 +00:00

29 lines
648 B
C++

//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <iostream>
// istream cin;
#include <iostream>
#include <cassert>
int main()
{
#if 0
std::cout << "Hello World!\n";
int i;
std::cout << "Enter a number: ";
std::cin >> i;
std::cout << "The number is : " << i << '\n';
#else // 0
assert(std::cin.tie() == &std::cout);
#endif
}