summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail R. Gadelha <mikhail.ramalho@gmail.com>2018-06-28 22:08:44 +0000
committerMikhail R. Gadelha <mikhail.ramalho@gmail.com>2018-06-28 22:08:44 +0000
commit7f081fb22e7b83f0ae98ce4a88e16d0ec20e777f (patch)
treee0158d66bee1e0611460121b4e9a462f618ed60b
parent65d885e376adc5d1ed6de0e924994574e1ec564d (diff)
downloadbcm5719-llvm-7f081fb22e7b83f0ae98ce4a88e16d0ec20e777f.tar.gz
bcm5719-llvm-7f081fb22e7b83f0ae98ce4a88e16d0ec20e777f.zip
[analyzer] fix test case expected warning
After r335814, the constraint manager is no longer generating a false bug report about the division by zero in the test case. This patch removes the expected false bug report. llvm-svn: 335932
-rw-r--r--clang/test/Analysis/z3-crosscheck.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/test/Analysis/z3-crosscheck.c b/clang/test/Analysis/z3-crosscheck.c
index 66f778de8a3..67d410434fb 100644
--- a/clang/test/Analysis/z3-crosscheck.c
+++ b/clang/test/Analysis/z3-crosscheck.c
@@ -21,22 +21,14 @@ void f(int *a, int *b) {
if ((a - b) == 0)
c = 0;
if (a != b)
-#ifdef NO_CROSSCHECK
- g(3 / c); // expected-warning {{Division by zero}}
-#else
g(3 / c); // no-warning
-#endif
}
_Bool nondet_bool();
void h(int d) {
int x, y, k, z = 1;
-#ifdef NO_CROSSCHECK
while (z < k) { // expected-warning {{The right operand of '<' is a garbage value}}
-#else
- while (z < k) { // expected-warning {{The right operand of '<' is a garbage value}}
-#endif
z = 2 * z;
}
}
OpenPOWER on IntegriCloud