mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
Fix the move to itself
PiperOrigin-RevId: 614670264 Change-Id: Id6b1cffa4e104a82234130977235f1eb1021968f
This commit is contained in:
committed by
Copybara-Service
parent
e968256406
commit
b97e7f353b
@@ -497,8 +497,8 @@ TEST(Status, MoveAssignment) {
|
||||
{
|
||||
absl::Status status(absl::StatusCode::kInvalidArgument, "message");
|
||||
absl::Status copy(status);
|
||||
status = static_cast<absl::Status&&>(status);
|
||||
EXPECT_EQ(status, copy);
|
||||
assignee = static_cast<absl::Status&&>(status);
|
||||
EXPECT_EQ(assignee, copy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user