llvm.org GIT mirror llvm / df70ab2
Silence warnings about unknown pragmas for compilers that are not Clang. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225788 91177308-0d34-0410-b5e6-96231b3b80d8 Aaron Ballman 5 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
677677 EXPECT_EQ(A9.nearestLogBase2(), UINT32_MAX);
678678 }
679679
680 #if defined(__clang__)
680681 // Disable the warning that triggers on exactly what is being tested.
681682 #pragma clang diagnostic push
682683 #pragma clang diagnostic ignored "-Wself-move"
684 #endif
683685 TEST(APIntTest, SelfMoveAssignment) {
684686 APInt X(32, 0xdeadbeef);
685687 X = std::move(X);
696698 EXPECT_EQ(0xdeadbeefdeadbeefULL, Raw[0]);
697699 EXPECT_EQ(0xdeadbeefdeadbeefULL, Raw[1]);
698700 }
701 #if defined(__clang__)
699702 #pragma clang diagnostic pop
700
701 }
703 #endif
704 }