llvm.org GIT mirror llvm / cd7eb37
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 Richard Trieu 5 years ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
677677 EXPECT_EQ(A9.nearestLogBase2(), UINT32_MAX);
678678 }
679679
680 // Disable the warning that triggers on exactly what is being tested.
681 #pragma clang diagnostic push
682 #pragma clang diagnostic ignored "-Wself-move"
680683 TEST(APIntTest, SelfMoveAssignment) {
681684 APInt X(32, 0xdeadbeef);
682685 X = std::move(X);
693696 EXPECT_EQ(0xdeadbeefdeadbeefULL, Raw[0]);
694697 EXPECT_EQ(0xdeadbeefdeadbeefULL, Raw[1]);
695698 }
696
697 }
699 #pragma clang diagnostic pop
700
701 }