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/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/alloc.pass.cpp')
-rw-r--r-- | test/std/containers/associative/multimap/multimap.cons/alloc.pass.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/std/containers/associative/multimap/multimap.cons/alloc.pass.cpp b/test/std/containers/associative/multimap/multimap.cons/alloc.pass.cpp index 69660fcd2772e..40930f0c9c1e9 100644 --- a/test/std/containers/associative/multimap/multimap.cons/alloc.pass.cpp +++ b/test/std/containers/associative/multimap/multimap.cons/alloc.pass.cpp @@ -38,5 +38,13 @@ int main() assert(m.begin() == m.end()); assert(m.get_allocator() == A()); } + { + typedef std::less<int> C; + typedef explicit_allocator<std::pair<const int, double> > A; + std::multimap<int, double, C, A> m(A{}); + assert(m.empty()); + assert(m.begin() == m.end()); + assert(m.get_allocator() == A{}); + } #endif } |