Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libcxx / test / std / containers / associative / map / map.access / empty.verify.cpp
blob27ca7c66ccebf6553e29b8a6dc08576bc4979464
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 // <map>
11 // class map
13 // bool empty() const noexcept;
15 // UNSUPPORTED: c++03, c++11, c++14, c++17
17 #include <map>
19 void f() {
20 std::map<int, int> c;
21 c.empty(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}