diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-08-17 05:58:40 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-08-17 05:58:40 +0000 |
commit | 2a10c960fa33b7048b48107823f5879cf301dece (patch) | |
tree | 055ff7b53c98af2ffcc7abc42a03e4aa1b42f502 /libcxx/test/std/containers/associative/set/set.cons/default.pass.cpp | |
parent | 14f383e9c4b776d415cbc66902d8492dbcc0c0e1 (diff) | |
download | bcm5719-llvm-2a10c960fa33b7048b48107823f5879cf301dece.tar.gz bcm5719-llvm-2a10c960fa33b7048b48107823f5879cf301dece.zip |
Support allocators with explicit conversion constructors. Fixes bug #29000
llvm-svn: 278904
Diffstat (limited to 'libcxx/test/std/containers/associative/set/set.cons/default.pass.cpp')
-rw-r--r-- | libcxx/test/std/containers/associative/set/set.cons/default.pass.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libcxx/test/std/containers/associative/set/set.cons/default.pass.cpp b/libcxx/test/std/containers/associative/set/set.cons/default.pass.cpp index 4c924ca70e9..3310c51edc0 100644 --- a/libcxx/test/std/containers/associative/set/set.cons/default.pass.cpp +++ b/libcxx/test/std/containers/associative/set/set.cons/default.pass.cpp @@ -32,6 +32,20 @@ int main() assert(m.begin() == m.end()); } { + typedef explicit_allocator<int> A; + { + std::set<int, std::less<int>, A> m; + assert(m.empty()); + assert(m.begin() == m.end()); + } + { + A a; + std::set<int, std::less<int>, A> m(a); + assert(m.empty()); + assert(m.begin() == m.end()); + } + } + { std::set<int> m = {}; assert(m.empty()); assert(m.begin() == m.end()); |