From: Richard Trieu Date: Tue, 13 Jan 2015 02:10:33 +0000 (+0000) Subject: Disable a warning for self move since the test is checking for this behavior. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cd7eb37ca48ba8fb92e2604d3866a198b8a72a4e;p=oota-llvm.git Disable a warning for self move since the test is checking for this behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225754 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/APIntTest.cpp b/unittests/ADT/APIntTest.cpp index 8198c719d6a..9f063ccf887 100644 --- a/unittests/ADT/APIntTest.cpp +++ b/unittests/ADT/APIntTest.cpp @@ -678,6 +678,9 @@ TEST(APIntTest, nearestLogBase2) { EXPECT_EQ(A9.nearestLogBase2(), UINT32_MAX); } +// Disable the warning that triggers on exactly what is being tested. +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wself-move" TEST(APIntTest, SelfMoveAssignment) { APInt X(32, 0xdeadbeef); X = std::move(X); @@ -694,5 +697,6 @@ TEST(APIntTest, SelfMoveAssignment) { EXPECT_EQ(0xdeadbeefdeadbeefULL, Raw[0]); EXPECT_EQ(0xdeadbeefdeadbeefULL, Raw[1]); } +#pragma clang diagnostic pop }