[cfe-commits] r50073 - /cfe/trunk/test/Analysis/null-deref-ps.c
Ted Kremenek
kremenek at apple.com
Mon Apr 21 16:45:26 PDT 2008
Author: kremenek
Date: Mon Apr 21 18:45:26 2008
New Revision: 50073
URL: http://llvm.org/viewvc/llvm-project?rev=50073&view=rev
Log:
Added missing expected-warning.
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=50073&r1=50072&r2=50073&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/null-deref-ps.c (original)
+++ cfe/trunk/test/Analysis/null-deref-ps.c Mon Apr 21 18:45:26 2008
@@ -14,5 +14,5 @@
if (p)
p->x = 1;
- return p->x++;
+ return p->x++; // expected-warning{{Dereference of null pointer.}}
}
More information about the cfe-commits
mailing list