//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // class error_code // template // basic_ostream& // operator<<(basic_ostream& os, const error_code& ec); #include #include #include int main() { std::ostringstream out; out << std::error_code(std::io_errc::stream); assert(out.str() == "iostream:1"); }