Added missing expected-warning.

llvm-svn: 50073
This commit is contained in:
Ted Kremenek 2008-04-21 23:45:26 +00:00
parent 503924bb9c
commit efa92f1dfc
1 changed files with 1 additions and 1 deletions

View File

@ -14,5 +14,5 @@ int f2(struct foo_struct* p) {
if (p) if (p)
p->x = 1; p->x = 1;
return p->x++; return p->x++; // expected-warning{{Dereference of null pointer.}}
} }