aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Analysis/null-deref-ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/null-deref-ps.c b/test/Analysis/null-deref-ps.c
index 4ce4f8b03e..214ccdd0ea 100644
--- a/test/Analysis/null-deref-ps.c
+++ b/test/Analysis/null-deref-ps.c
@@ -14,5 +14,5 @@ int f2(struct foo_struct* p) {
if (p)
p->x = 1;
- return p->x++;
+ return p->x++; // expected-warning{{Dereference of null pointer.}}
}