aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2015-01-14 01:50:12 +0000
committerRichard Trieu <rtrieu@google.com>2015-01-14 01:50:12 +0000
commita64949dfb855821f16fdfef1bb78b412509fb8e0 (patch)
tree5bbf52a836bcc237777ec4ba4c5ecde3d83fef50
parenta203ca61afae889462f4935a948ca7486f956e7c (diff)
downloadllvm-a64949dfb855821f16fdfef1bb78b412509fb8e0.zip
llvm-a64949dfb855821f16fdfef1bb78b412509fb8e0.tar.gz
llvm-a64949dfb855821f16fdfef1bb78b412509fb8e0.tar.bz2
Disable -Wunknown-pragmas in a test so that Clang without -Wself-move will not
complain that the flag doesn't exist. llvm-svn: 225931
-rw-r--r--llvm/unittests/ADT/APIntTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp
index a657886..3b7ac5b8 100644
--- a/llvm/unittests/ADT/APIntTest.cpp
+++ b/llvm/unittests/ADT/APIntTest.cpp
@@ -679,6 +679,9 @@ TEST(APIntTest, nearestLogBase2) {
}
#if defined(__clang__)
+// Disable the pragma warning from versions of Clang without -Wself-move
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunknown-pragmas"
// Disable the warning that triggers on exactly what is being tested.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wself-move"
@@ -701,5 +704,6 @@ TEST(APIntTest, SelfMoveAssignment) {
}
#if defined(__clang__)
#pragma clang diagnostic pop
+#pragma clang diagnostic pop
#endif
}