forked from OSchip/llvm-project
parent
989ab477d2
commit
309052a84c
|
@ -0,0 +1,7 @@
|
|||
// RUN: xcc --analyze %s -o %t &&
|
||||
// RUN: grep '<string>Dereference of null pointer.</string>' %t
|
||||
|
||||
void f(int *p) {
|
||||
if (!p)
|
||||
*p = 0;
|
||||
}
|
Loading…
Reference in New Issue