summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/container.requirements
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-06-06 00:13:49 +0000
committerEric Fiselier <eric@efcs.ca>2018-06-06 00:13:49 +0000
commitc797bb23b857e4521562073d408be2de8d15a270 (patch)
treee03533e75fccd2ef30c6bf2c6e9aac2eae70a3a8 /libcxx/test/std/containers/container.requirements
parent59313be8d3389918d0a1bf704bcbdd889c073ffc (diff)
downloadbcm5719-llvm-c797bb23b857e4521562073d408be2de8d15a270.tar.gz
bcm5719-llvm-c797bb23b857e4521562073d408be2de8d15a270.zip
Fix test failures after r334053.
llvm-svn: 334056
Diffstat (limited to 'libcxx/test/std/containers/container.requirements')
-rw-r--r--libcxx/test/std/containers/container.requirements/container.requirements.general/allocator_move.pass.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/test/std/containers/container.requirements/container.requirements.general/allocator_move.pass.cpp b/libcxx/test/std/containers/container.requirements/container.requirements.general/allocator_move.pass.cpp
index da9b7e646cc..81f4ad8934d 100644
--- a/libcxx/test/std/containers/container.requirements/container.requirements.general/allocator_move.pass.cpp
+++ b/libcxx/test/std/containers/container.requirements/container.requirements.general/allocator_move.pass.cpp
@@ -15,6 +15,7 @@
// allocator shall not exit via an exception.
#include <vector>
+#include <deque>
#include <list>
#include <forward_list>
#include <set>
@@ -67,6 +68,14 @@ int main() {
test<std::vector<bool, test_allocator<bool> > >();
test<std::list<int, test_allocator<int> > >();
test<std::forward_list<int, test_allocator<int> > >();
+
+ // libc++ stores two allocators in deque
+#ifdef _LIBCPP_VERSION
+ int stored_allocators = 2;
+#else
+ int stored_allocators = 1;
+#endif
+ test<std::deque<int, test_allocator<int> > >(stored_allocators);
}
{ // test associative containers
test<std::set<int, std::less<int>, test_allocator<int> > >();
OpenPOWER on IntegriCloud