summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Toth <jonas.toth@gmail.com>2017-10-03 17:08:57 +0000
committerJonas Toth <jonas.toth@gmail.com>2017-10-03 17:08:57 +0000
commit2ce23ab6f266d8852f3a836a026dd872367762df (patch)
tree3601aa665efc4ef8ea25f669a668f7d961d7b393
parent261a6c29ea20237d7a4c079263fdbee54dda8695 (diff)
downloadbcm5719-llvm-2ce23ab6f266d8852f3a836a026dd872367762df.tar.gz
bcm5719-llvm-2ce23ab6f266d8852f3a836a026dd872367762df.zip
[clang-tidy] fix buildbot hicpp-signed-bitwise
To finally fix the buildbot I added one single warning testcase. llvm-svn: 314816
-rw-r--r--clang-tools-extra/test/clang-tidy/hicpp-signed-bitwise-bug34747.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/hicpp-signed-bitwise-bug34747.cpp b/clang-tools-extra/test/clang-tidy/hicpp-signed-bitwise-bug34747.cpp
index 291ea8dc993..217df71dc33 100644
--- a/clang-tools-extra/test/clang-tidy/hicpp-signed-bitwise-bug34747.cpp
+++ b/clang-tools-extra/test/clang-tidy/hicpp-signed-bitwise-bug34747.cpp
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy %s hicpp-signed-bitwise %t -- | count 0
+// RUN: %check_clang_tidy %s hicpp-signed-bitwise %t --
// Note: this test expects no diagnostics, but FileCheck cannot handle that,
// hence the use of | count 0.
@@ -19,3 +19,11 @@ struct foo {
void bar(OutputStream<signed char> &o) {
foo<signed char> f(o);
}
+
+void silence_lit() {
+ int SValue = 42;
+ int SResult;
+
+ SResult = SValue & 1;
+ // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise operator
+}
OpenPOWER on IntegriCloud