[RISCV] Add a default assignment of Inst{12-7} to RVInst16CSS. NFC
[llvm-project.git] / libcxx / test / std / containers / associative / multimap / multimap.ops / upper_bound0.pass.cpp
blob4ffda7f5ab703053d84d062a46c8cce62dc2f815
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 //===----------------------------------------------------------------------===//
8 //
9 // XFAIL: c++03, c++11
11 // <map>
13 // class multimap
15 // iterator upper_bound(const key_type& k);
16 // const_iterator upper_bound(const key_type& k) const;
18 // The member function templates find, count, lower_bound, upper_bound, and
19 // equal_range shall not participate in overload resolution unless the
20 // qualified-id Compare::is_transparent is valid and denotes a type
23 #include <map>
24 #include <cassert>
26 #include "test_macros.h"
27 #include "is_transparent.h"
29 int main(int, char**)
32 typedef std::multimap<int, double, transparent_less> M;
33 M example;
34 assert(example.upper_bound(C2Int{5}) == example.end());
37 typedef std::multimap<int, double, transparent_less_not_referenceable> M;
38 M example;
39 assert(example.upper_bound(C2Int{5}) == example.end());
42 return 0;