Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / containers / associative / map / map.ops / count2.compile.fail.cpp
blob2e27429c33c8c6e271c7b0450f3370ee6d022836
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 // UNSUPPORTED: c++03, c++11
11 // <map>
13 // class map
15 // size_type count(const key_type& k) const;
17 // The member function templates find, count, lower_bound, upper_bound, and
18 // equal_range shall not participate in overload resolution unless the
19 // qualified-id Compare::is_transparent is valid and denotes a type
22 #include <map>
23 #include <cassert>
25 #include "test_macros.h"
26 #include "is_transparent.h"
28 int main(int, char**)
31 typedef std::map<int, double, transparent_less_private> M;
33 TEST_IGNORE_NODISCARD M().count(C2Int{5});