diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-08-24 17:37:53 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-08-24 17:37:53 +0000 |
| commit | e947f967d1e30b3973f8a789e682da57481a5ece (patch) | |
| tree | d05acd9c81f71323c19b08b989291f03b5866e93 /test/std/containers/associative/multimap/multimap.cons/compare_alloc.pass.cpp | |
| parent | a9eb25783e00a819962a7f2b5755c203894de36b (diff) | |
vendor/libc++/libc++-release_390-r280324vendor/libc++/libc++-release_39-r279689vendor/libc++/libc++-release_39-r279477
Notes
Diffstat (limited to 'test/std/containers/associative/multimap/multimap.cons/compare_alloc.pass.cpp')
| -rw-r--r-- | test/std/containers/associative/multimap/multimap.cons/compare_alloc.pass.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/std/containers/associative/multimap/multimap.cons/compare_alloc.pass.cpp b/test/std/containers/associative/multimap/multimap.cons/compare_alloc.pass.cpp index 836532892499..fc6cef89f907 100644 --- a/test/std/containers/associative/multimap/multimap.cons/compare_alloc.pass.cpp +++ b/test/std/containers/associative/multimap/multimap.cons/compare_alloc.pass.cpp @@ -41,5 +41,14 @@ int main() assert(m.key_comp() == C(4)); assert(m.get_allocator() == A()); } + { + typedef test_compare<std::less<int> > C; + typedef explicit_allocator<std::pair<const int, double> > A; + std::multimap<int, double, C, A> m(C(4), A{}); + assert(m.empty()); + assert(m.begin() == m.end()); + assert(m.key_comp() == C(4)); + assert(m.get_allocator() == A{}); + } #endif } |
