forked from OSchip/llvm-project
parent
503924bb9c
commit
efa92f1dfc
|
@ -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.}}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue