blob: 210344c76071e0ef246a18dbd66e7180d104d499 [file] [log] [blame]
// { dg-do compile { target c++11 } }
#include <system_error>
extern const std::error_category& cat;
static_assert(std::is_nothrow_destructible<std::error_category>::value, "");
static_assert(noexcept(cat.name()), "");
static_assert(noexcept(cat.default_error_condition(1)), "");
static_assert(noexcept(cat.equivalent(1, {})), "");
static_assert(noexcept(cat.equivalent({}, 1)), "");
static_assert(noexcept(cat == cat), "");
static_assert(noexcept(cat != cat), "");
static_assert(noexcept(cat < cat), "");