Move test into test/std subdirectory.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@224658 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// <iostream>
|
||||
|
||||
// istream cerr;
|
||||
|
||||
#include <iostream>
|
||||
#include <cassert>
|
||||
|
||||
int main()
|
||||
{
|
||||
#if 0
|
||||
std::cerr << "Hello World!\n";
|
||||
#else
|
||||
assert(std::cerr.tie() == &std::cout);
|
||||
assert(std::cerr.flags() & std::ios_base::unitbuf);
|
||||
#endif // 0
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. 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
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// <iostream>
|
||||
|
||||
// istream clog;
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
#if 0
|
||||
std::clog << "Hello World!\n";
|
||||
#else
|
||||
(void)std::clog;
|
||||
#endif
|
||||
}
|
@@ -0,0 +1,27 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// <iostream>
|
||||
|
||||
// istream cout;
|
||||
|
||||
#include <iostream>
|
||||
|
||||
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
|
||||
(void)std::cout;
|
||||
#endif
|
||||
}
|
20
test/std/input.output/iostream.objects/version.pass.cpp
Normal file
20
test/std/input.output/iostream.objects/version.pass.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// <iostream>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#ifndef _LIBCPP_VERSION
|
||||
#error _LIBCPP_VERSION not defined
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// <iostream>
|
||||
|
||||
// istream wcerr;
|
||||
|
||||
#include <iostream>
|
||||
#include <cassert>
|
||||
|
||||
int main()
|
||||
{
|
||||
#if 0
|
||||
std::wcerr << L"Hello World!\n";
|
||||
#else
|
||||
assert(std::wcerr.tie() == &std::wcout);
|
||||
assert(std::wcerr.flags() & std::ios_base::unitbuf);
|
||||
#endif // 0
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// <iostream>
|
||||
|
||||
// istream wcin;
|
||||
|
||||
#include <iostream>
|
||||
#include <cassert>
|
||||
|
||||
int main()
|
||||
{
|
||||
#if 0
|
||||
std::wcout << L"Hello World!\n";
|
||||
int i;
|
||||
std::wcout << L"Enter a number: ";
|
||||
std::wcin >> i;
|
||||
std::wcout << L"The number is : " << i << L'\n';
|
||||
#else // 0
|
||||
assert(std::wcin.tie() == &std::wcout);
|
||||
#endif
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// <iostream>
|
||||
|
||||
// istream wclog;
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
#if 0
|
||||
std::wclog << L"Hello World!\n";
|
||||
#else
|
||||
(void)std::wclog;
|
||||
#endif
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// <iostream>
|
||||
|
||||
// istream wcout;
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
#if 0
|
||||
std::wcout << L"Hello World!\n";
|
||||
#else
|
||||
(void)std::wcout;
|
||||
#endif
|
||||
}
|
Reference in New Issue
Block a user