4684ddb6aa
- import libcxx - reduce targets to the one when compiled as a tools Change-Id: Iabb8427f80ff8e89463559a28bcb8b4f2bdbc496
23 lines
614 B
C++
23 lines
614 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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");
|
|
}
|