Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libcxx / test / std / diagnostics / syserr / syserr.errcode / syserr.errcode.observers / category.pass.cpp
blob36d10182d097d6104026afe5a2594bf459ef49bb
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <system_error>
11 // class error_code
13 // const error_category& category() const;
15 #include <system_error>
16 #include <cassert>
18 #include "test_macros.h"
20 int main(int, char**)
22 const std::error_code ec(6, std::generic_category());
23 assert(ec.category() == std::generic_category());
25 return 0;