//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. 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"); }