mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
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
This commit is contained in:
@@ -678,9 +678,11 @@ TEST(APIntTest, nearestLogBase2) {
|
|||||||
EXPECT_EQ(A9.nearestLogBase2(), UINT32_MAX);
|
EXPECT_EQ(A9.nearestLogBase2(), UINT32_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
// Disable the warning that triggers on exactly what is being tested.
|
// Disable the warning that triggers on exactly what is being tested.
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wself-move"
|
#pragma clang diagnostic ignored "-Wself-move"
|
||||||
|
#endif
|
||||||
TEST(APIntTest, SelfMoveAssignment) {
|
TEST(APIntTest, SelfMoveAssignment) {
|
||||||
APInt X(32, 0xdeadbeef);
|
APInt X(32, 0xdeadbeef);
|
||||||
X = std::move(X);
|
X = std::move(X);
|
||||||
@@ -697,6 +699,7 @@ TEST(APIntTest, SelfMoveAssignment) {
|
|||||||
EXPECT_EQ(0xdeadbeefdeadbeefULL, Raw[0]);
|
EXPECT_EQ(0xdeadbeefdeadbeefULL, Raw[0]);
|
||||||
EXPECT_EQ(0xdeadbeefdeadbeefULL, Raw[1]);
|
EXPECT_EQ(0xdeadbeefdeadbeefULL, Raw[1]);
|
||||||
}
|
}
|
||||||
|
#if defined(__clang__)
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user