diff options
Diffstat (limited to 'unittests/Ref/RefTest.cpp')
-rw-r--r-- | unittests/Ref/RefTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Ref/RefTest.cpp b/unittests/Ref/RefTest.cpp index bf313513..2f17738f 100644 --- a/unittests/Ref/RefTest.cpp +++ b/unittests/Ref/RefTest.cpp @@ -95,8 +95,11 @@ TEST(RefTest, SelfMove) { struct Expr *r_e = new Expr(); ref<Expr> r(r_e); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wself-move" // Check self move r = std::move(r); +#pragma GCC diagnostic pop finished = 1; } EXPECT_EQ(1, finished_counter); |