aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/gprpp
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2018-04-18 08:04:11 -0700
committerGravatar Mark D. Roth <roth@google.com>2018-04-18 08:04:11 -0700
commit908a2173fe7d3ec5e9c37275651a9fd1b272c0b7 (patch)
treea3878c502620488100e438d0f5e03650dc84b701 /test/core/gprpp
parent6f3cadb687f7d9e3da3d49b18c3f68463352db6b (diff)
Avoid warnings from LLVM -Wself-assign.
Diffstat (limited to 'test/core/gprpp')
-rw-r--r--test/core/gprpp/ref_counted_ptr_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/gprpp/ref_counted_ptr_test.cc b/test/core/gprpp/ref_counted_ptr_test.cc
index 2e398a7722..c810345166 100644
--- a/test/core/gprpp/ref_counted_ptr_test.cc
+++ b/test/core/gprpp/ref_counted_ptr_test.cc
@@ -88,7 +88,7 @@ TEST(RefCountedPtr, CopyAssignmentWhenEmpty) {
TEST(RefCountedPtr, CopyAssignmentToSelf) {
RefCountedPtr<Foo> foo(New<Foo>());
- foo = foo;
+ foo = *&foo; // The "*&" avoids warnings from LLVM -Wself-assign.
}
TEST(RefCountedPtr, EnclosedScope) {