| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
#include <system_error> |
| 3 |
|
| 4 |
extern const std::error_category& cat; |
| 5 |
|
| 6 |
static_assert(std::is_nothrow_destructible<std::error_category>::value, ""); |
| 7 |
static_assert(noexcept(cat.name()), ""); |
| 8 |
static_assert(noexcept(cat.default_error_condition(1)), ""); |
| 9 |
static_assert(noexcept(cat.equivalent(1, {})), ""); |
| 10 |
static_assert(noexcept(cat.equivalent({}, 1)), ""); |
| 11 |
static_assert(noexcept(cat == cat), ""); |
| 12 |
static_assert(noexcept(cat != cat), ""); |
| 13 |
static_assert(noexcept(cat < cat), ""); |