blob: fbc03f1aa0291dada34c2ea9b7f83755bf8ff619 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// <system_error>
// class error_condition
// template <ErrorConditionEnum E> error_condition(E e);
#include <system_error>
#include <cassert>
int main()
{
{
std::error_condition ec(std::errc::not_a_directory);
assert(ec.value() == static_cast<int>(std::errc::not_a_directory));
assert(ec.category() == std::generic_category());
}
}