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:
Eric Fiselier
2014-12-20 01:40:03 +00:00
parent 669a8a5a19
commit a90c6dd460
4817 changed files with 13 additions and 0 deletions

View File

@@ -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.
//
//===----------------------------------------------------------------------===//
// <ios>
// const error_category& iostream_category();
#include <ios>
#include <cassert>
#include <string>
int main()
{
const std::error_category& e_cat1 = std::iostream_category();
std::string m1 = e_cat1.name();
assert(m1 == "iostream");
}

View File

@@ -0,0 +1,24 @@
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// <ios>
// error_code make_error_code(io_errc e);
#include <ios>
#include <cassert>
int main()
{
{
std::error_code ec = make_error_code(std::io_errc::stream);
assert(ec.value() == static_cast<int>(std::io_errc::stream));
assert(ec.category() == std::iostream_category());
}
}

View File

@@ -0,0 +1,24 @@
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// <ios>
// error_condition make_error_condition(io_errc e);
#include <ios>
#include <cassert>
int main()
{
{
const std::error_condition ec1 = std::make_error_condition(std::io_errc::stream);
assert(ec1.value() == static_cast<int>(std::io_errc::stream));
assert(ec1.category() == std::iostream_category());
}
}