blob: 3970708bfa02388051c316c69b577d2f3395805d [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// <ios>
// error_condition make_error_condition(io_errc e);
#include <ios>
#include <cassert>
int main(int, char**)
{
{
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());
}
return 0;
}