[cfe-commits] r60548 - /cfe/trunk/test/Analysis/null-deref-ps.c
Ted Kremenek
kremenek at apple.com
Thu Dec 4 11:44:24 PST 2008
Author: kremenek
Date: Thu Dec 4 13:44:23 2008
New Revision: 60548
URL: http://llvm.org/viewvc/llvm-project?rev=60548&view=rev
Log:
Add 'expected-warning' to make test case pass.
Modified:
cfe/trunk/test/Analysis/null-deref-ps.c
Modified: cfe/trunk/test/Analysis/null-deref-ps.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/null-deref-ps.c?rev=60548&r1=60547&r2=60548&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/null-deref-ps.c (original)
+++ cfe/trunk/test/Analysis/null-deref-ps.c Thu Dec 4 13:44:23 2008
@@ -75,8 +75,8 @@
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();
More information about the cfe-commits
mailing list