Silence Clang 9 warning.
GitOrigin-RevId: 2b3fe4b28076c612d3b7c0caebdd33f192107cbd
This commit is contained in:
parent
29d745c87e
commit
0d6c1842e1
@ -56,7 +56,14 @@ TEST(SharedPtr, simple) {
|
||||
ptr2 = std::move(ptr);
|
||||
CHECK(ptr.empty());
|
||||
CHECK(*ptr2 == "hello");
|
||||
#if TD_CLANG
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wself-assign-overloaded"
|
||||
#endif
|
||||
ptr2 = ptr2;
|
||||
#if TD_CLANG
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
CHECK(*ptr2 == "hello");
|
||||
CHECK(!Deleter::was_delete());
|
||||
ptr2.reset();
|
||||
|
Reference in New Issue
Block a user