Fixed unintentional assignment-in-assert in new "extending memory management tools" algorithms.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@297772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Billy Robert O'Neal III
2017-03-14 19:36:30 +00:00
parent 7a16fa8ae2
commit 0b23f9c81d
6 changed files with 6 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ void test_counted()
Counted* p = (Counted*)pool;
std::uninitialized_default_construct(It(p), It(p+1));
assert(Counted::count == 1);
assert(Counted::constructed = 1);
assert(Counted::constructed == 1);
std::uninitialized_default_construct(It(p+1), It(p+N));
assert(Counted::count == 5);
assert(Counted::constructed == 5);

View File

@@ -80,7 +80,7 @@ void test_counted()
It e = std::uninitialized_default_construct_n(It(p), 1);
assert(e == It(p+1));
assert(Counted::count == 1);
assert(Counted::constructed = 1);
assert(Counted::constructed == 1);
e = std::uninitialized_default_construct_n(It(p+1), 4);
assert(e == It(p+N));
assert(Counted::count == 5);