mirror of
https://github.com/intel/llvm.git
synced 2026-02-09 01:52:26 +08:00
Added missing expected-warning.
llvm-svn: 50073
This commit is contained in:
@@ -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.}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user