diff options
author | Richard Trieu <rtrieu@google.com> | 2015-01-13 02:10:33 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2015-01-13 02:10:33 +0000 |
commit | 5dc76a5d34a1054bae2fd5bf6a9b8e44e2daecee (patch) | |
tree | 20be1e9e9c3a5f7d6cd415f53d21c1455d14084d /llvm/unittests/ADT/APIntTest.cpp | |
parent | db8e6f472e345292b66e5d1c7971883f5acbb20a (diff) | |
download | bcm5719-llvm-5dc76a5d34a1054bae2fd5bf6a9b8e44e2daecee.tar.gz bcm5719-llvm-5dc76a5d34a1054bae2fd5bf6a9b8e44e2daecee.zip |
Disable a warning for self move since the test is checking for this behavior.
llvm-svn: 225754
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/APIntTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp index 8198c719d6a..9f063ccf887 100644 --- a/llvm/unittests/ADT/APIntTest.cpp +++ b/llvm/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 } |