Fix accidental assignment inside test asserts

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@314947 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2017-10-04 23:21:18 +00:00
parent 2bba98eea0
commit 2b7279cb08
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ int main()
P1 p1(42, 101); P1 p1(42, 101);
P2 p2(p1); P2 p2(p1);
assert(p2.first == 42); assert(p2.first == 42);
assert(p2.second = 101); assert(p2.second == 101);
} }
{ {
test_pair_const<AllCtors, AllCtors>(); // copy construction test_pair_const<AllCtors, AllCtors>(); // copy construction

View File

@@ -81,7 +81,7 @@ int main()
P1 p1(42, 101); P1 p1(42, 101);
P2 p2(std::move(p1)); P2 p2(std::move(p1));
assert(p2.first == 42); assert(p2.first == 42);
assert(p2.second = 101); assert(p2.second == 101);
} }
{ {
test_pair_rv<AllCtors, AllCtors>(); test_pair_rv<AllCtors, AllCtors>();