aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-12-04 19:44:23 +0000
committerTed Kremenek <kremenek@apple.com>2008-12-04 19:44:23 +0000
commita317e90f4c4aeb871359c3b8c3420f1ddab97d5c (patch)
tree5fa4527c001487b0a729b585698a858f6657ef4d
parent1e10011aa27d322d1290fc04d2372bf8719c645b (diff)
Add 'expected-warning' to make test case pass.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60548 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/null-deref-ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Analysis/null-deref-ps.c b/test/Analysis/null-deref-ps.c
index 806065342a..422c9da0aa 100644
--- a/test/Analysis/null-deref-ps.c
+++ b/test/Analysis/null-deref-ps.c
@@ -75,8 +75,8 @@ int f6b(int *p) {
int bar3(int*p, int q, int *r) __attribute__((nonnull(1,3)));
int f6c(int *p, int *q) {
- return !p ? bar3(q, 2, p)
- : bar3(p, 2, q);
+ return !p ? bar3(q, 2, p) // expected-warning {{Null pointer passed as an argument to a 'nonnull' parameter}}
+ : bar3(p, 2, q); // no-warning
}
int* qux();