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 / message.pass.cpp
blobe787ef9ee9ea08ff128f1cc521ac58b1e99e769b
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 // string message() const;
15 #include <system_error>
16 #include <string>
17 #include <cassert>
19 #include "test_macros.h"
21 int main(int, char**)
23 const std::error_code ec(6, std::generic_category());
24 assert(ec.message() == std::generic_category().message(6));
26 return 0;