summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-05-30 01:31:04 +0000
committerEric Fiselier <eric@efcs.ca>2016-05-30 01:31:04 +0000
commit9ef549212c2c952ef5314432b7230270466a62ca (patch)
tree92305bb1ab4f19089d0f5ede4d1d8d4236bae2b6 /libcxx/test/std
parentf96bc6eb0c1708682eb51380c36ca627a27ca92e (diff)
downloadbcm5719-llvm-9ef549212c2c952ef5314432b7230270466a62ca.tar.gz
bcm5719-llvm-9ef549212c2c952ef5314432b7230270466a62ca.zip
Fix bug in test allocator that incorrectly computed the allocation size
llvm-svn: 271195
Diffstat (limited to 'libcxx/test/std')
-rw-r--r--libcxx/test/std/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/do_allocate_and_deallocate.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/do_allocate_and_deallocate.pass.cpp b/libcxx/test/std/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/do_allocate_and_deallocate.pass.cpp
index 875c3e01686..16b72697593 100644
--- a/libcxx/test/std/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/do_allocate_and_deallocate.pass.cpp
+++ b/libcxx/test/std/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/do_allocate_and_deallocate.pass.cpp
@@ -34,7 +34,7 @@ void check_allocate_deallocate()
typedef ex::resource_adaptor<Alloc> R1;
const std::size_t max_align = alignof(std::max_align_t);
- for (std::size_t s = 0; s < 5012; ++s)
+ for (std::size_t s = 1; s < 5012; ++s)
{
for(std::size_t align_req = 1; align_req <= (max_align * 2); align_req *= 2)
{
OpenPOWER on IntegriCloud