Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
smallfix
Browse files Browse the repository at this point in the history
  • Loading branch information
qinzuoyan committed Jun 13, 2018
1 parent b8446fc commit f681c28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/tests/autoref_ptr_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ TEST(RefCountedUnitTest, TestSelfAssignment)
dsn::ref_ptr<SelfAssign> var(p);
var = var;
EXPECT_EQ(var.get(), p);
// comment the following two lines because clang compiler would complain with "-Wself-move"
// var = std::move(var);
// EXPECT_EQ(var.get(), p);

// please uncomment these lines when swap are supported in ref_ptr
// var.swap(var);
Expand Down

0 comments on commit f681c28

Please sign in to comment.