mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 01:18:52 +08:00
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:
@@ -71,7 +71,7 @@ int main()
|
||||
P1 p1(42, 101);
|
||||
P2 p2(p1);
|
||||
assert(p2.first == 42);
|
||||
assert(p2.second = 101);
|
||||
assert(p2.second == 101);
|
||||
}
|
||||
{
|
||||
test_pair_const<AllCtors, AllCtors>(); // copy construction
|
||||
|
@@ -81,7 +81,7 @@ int main()
|
||||
P1 p1(42, 101);
|
||||
P2 p2(std::move(p1));
|
||||
assert(p2.first == 42);
|
||||
assert(p2.second = 101);
|
||||
assert(p2.second == 101);
|
||||
}
|
||||
{
|
||||
test_pair_rv<AllCtors, AllCtors>();
|
||||
|
Reference in New Issue
Block a user