[libcxx] r297772 - Fixed unintentional assignment-in-assert in new "extending memory management tools" algorithms.
Billy Robert O'Neal III via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 14 12:36:30 PDT 2017
Author: bion
Date: Tue Mar 14 14:36:30 2017
New Revision: 297772
URL: http://llvm.org/viewvc/llvm-project?rev=297772&view=rev
Log:
Fixed unintentional assignment-in-assert in new "extending memory management tools" algorithms.
Modified:
libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/uninitialized_default_construct.pass.cpp
libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/uninitialized_default_construct_n.pass.cpp
libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/uninitialized_value_construct.pass.cpp
libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/uninitialized_value_construct_n.pass.cpp
libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.move/uninitialized_move.pass.cpp
libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.move/uninitialized_move_n.pass.cpp
Modified: libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/uninitialized_default_construct.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/uninitialized_default_construct.pass.cpp?rev=297772&r1=297771&r2=297772&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/uninitialized_default_construct.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/uninitialized_default_construct.pass.cpp Tue Mar 14 14:36:30 2017
@@ -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);
Modified: libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/uninitialized_default_construct_n.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/uninitialized_default_construct_n.pass.cpp?rev=297772&r1=297771&r2=297772&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/uninitialized_default_construct_n.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/uninitialized_default_construct_n.pass.cpp Tue Mar 14 14:36:30 2017
@@ -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);
Modified: libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/uninitialized_value_construct.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/uninitialized_value_construct.pass.cpp?rev=297772&r1=297771&r2=297772&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/uninitialized_value_construct.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/uninitialized_value_construct.pass.cpp Tue Mar 14 14:36:30 2017
@@ -79,7 +79,7 @@ void test_counted()
Counted* p = (Counted*)pool;
std::uninitialized_value_construct(It(p), It(p+1));
assert(Counted::count == 1);
- assert(Counted::constructed = 1);
+ assert(Counted::constructed == 1);
std::uninitialized_value_construct(It(p+1), It(p+N));
assert(Counted::count == 5);
assert(Counted::constructed == 5);
Modified: libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/uninitialized_value_construct_n.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/uninitialized_value_construct_n.pass.cpp?rev=297772&r1=297771&r2=297772&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/uninitialized_value_construct_n.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/uninitialized_value_construct_n.pass.cpp Tue Mar 14 14:36:30 2017
@@ -81,7 +81,7 @@ void test_counted()
It e = std::uninitialized_value_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_value_construct_n(It(p+1), 4);
assert(e == It(p+N));
assert(Counted::count == 5);
Modified: libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.move/uninitialized_move.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.move/uninitialized_move.pass.cpp?rev=297772&r1=297771&r2=297772&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.move/uninitialized_move.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.move/uninitialized_move.pass.cpp Tue Mar 14 14:36:30 2017
@@ -88,7 +88,7 @@ void test_counted()
Counted* p = (Counted*)pool;
auto ret = std::uninitialized_move(It(values), It(values + 1), FIt(p));
assert(ret == FIt(p +1));
- assert(Counted::constructed = 1);
+ assert(Counted::constructed == 1);
assert(Counted::count == 1);
assert(p[0].value == 1);
assert(values[0] == 0);
Modified: libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.move/uninitialized_move_n.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.move/uninitialized_move_n.pass.cpp?rev=297772&r1=297771&r2=297772&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.move/uninitialized_move_n.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/specialized.algorithms/uninitialized.move/uninitialized_move_n.pass.cpp Tue Mar 14 14:36:30 2017
@@ -89,7 +89,7 @@ void test_counted()
auto ret = std::uninitialized_move_n(It(values), 1, FIt(p));
assert(ret.first == It(values +1));
assert(ret.second == FIt(p +1));
- assert(Counted::constructed = 1);
+ assert(Counted::constructed == 1);
assert(Counted::count == 1);
assert(p[0].value == 1);
assert(values[0] == 0);
More information about the cfe-commits
mailing list