summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/sequences/vector.bool/copy.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-14 02:53:04 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-14 02:53:04 +0000
commitf81cfbab12b8416dceef7b48e2d6987a6c729f4c (patch)
tree0edaf1f091c80867e976bf29d5a4aa5303191bb4 /libcxx/test/std/containers/sequences/vector.bool/copy.pass.cpp
parentf4755f5b15dcca4270ccd932aa0f01bcb6b645b0 (diff)
downloadbcm5719-llvm-f81cfbab12b8416dceef7b48e2d6987a6c729f4c.tar.gz
bcm5719-llvm-f81cfbab12b8416dceef7b48e2d6987a6c729f4c.zip
Fix vector<bool> tests that were using ints. Patch from STL@microsoft.com
llvm-svn: 272620
Diffstat (limited to 'libcxx/test/std/containers/sequences/vector.bool/copy.pass.cpp')
-rw-r--r--libcxx/test/std/containers/sequences/vector.bool/copy.pass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/containers/sequences/vector.bool/copy.pass.cpp b/libcxx/test/std/containers/sequences/vector.bool/copy.pass.cpp
index abf322b3fae..b3cf9b551f9 100644
--- a/libcxx/test/std/containers/sequences/vector.bool/copy.pass.cpp
+++ b/libcxx/test/std/containers/sequences/vector.bool/copy.pass.cpp
@@ -38,14 +38,14 @@ int main()
test(std::vector<bool>(a, an));
}
{
- std::vector<bool, test_allocator<bool> > v(3, 2, test_allocator<bool>(5));
+ std::vector<bool, test_allocator<bool> > v(3, true, test_allocator<bool>(5));
std::vector<bool, test_allocator<bool> > v2 = v;
assert(v2 == v);
assert(v2.get_allocator() == v.get_allocator());
}
#if TEST_STD_VER >= 11
{
- std::vector<bool, other_allocator<bool> > v(3, 2, other_allocator<bool>(5));
+ std::vector<bool, other_allocator<bool> > v(3, true, other_allocator<bool>(5));
std::vector<bool, other_allocator<bool> > v2 = v;
assert(v2 == v);
assert(v2.get_allocator() == other_allocator<bool>(-2));
@@ -56,7 +56,7 @@ int main()
test(std::vector<bool, min_allocator<bool>>(a, an));
}
{
- std::vector<bool, min_allocator<bool> > v(3, 2, min_allocator<bool>());
+ std::vector<bool, min_allocator<bool> > v(3, true, min_allocator<bool>());
std::vector<bool, min_allocator<bool> > v2 = v;
assert(v2 == v);
assert(v2.get_allocator() == v.get_allocator());
OpenPOWER on IntegriCloud