diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2015-06-30 18:15:41 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2015-06-30 18:15:41 +0000 |
commit | f8457a0735899ba71b7bb321cf88ff48b54c9d30 (patch) | |
tree | a1c8b315114dab918f4bb1f8a200aec9db9d475d /libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp | |
parent | d9f09858a45aaeb1e258e41b04d6f78c345fbd8d (diff) | |
download | bcm5719-llvm-f8457a0735899ba71b7bb321cf88ff48b54c9d30.tar.gz bcm5719-llvm-f8457a0735899ba71b7bb321cf88ff48b54c9d30.zip |
Add tests for LWG#2299. While doing so, I noticed that the tests we have for the transparent comparators don't actually call them. Fix those tests, too. Now one of them is failing, due to a missing const in <map>. Add that (twice). Next step is to do the same for <unordered_map>
llvm-svn: 241091
Diffstat (limited to 'libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp')
-rw-r--r-- | libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp b/libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp index fb5afa241ca..a60e42cf859 100644 --- a/libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp +++ b/libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp @@ -19,6 +19,7 @@ #include "min_allocator.h" #include "private_constructor.hpp" +#include "is_transparent.h" int main() { @@ -174,6 +175,19 @@ int main() assert(r == next(m.begin(), 6)); r = m.find(10); assert(r == m.end()); + + r = m.find(C2Int(5)); + assert(r == m.begin()); + r = m.find(C2Int(6)); + assert(r == m.end()); + r = m.find(C2Int(7)); + assert(r == next(m.begin(), 3)); + r = m.find(C2Int(8)); + assert(r == m.end()); + r = m.find(C2Int(9)); + assert(r == next(m.begin(), 6)); + r = m.find(C2Int(10)); + assert(r == m.end()); } { |