forked from OSchip/llvm-project
4 lines
115 B
C
4 lines
115 B
C
|
void foo(int *ptr) {
|
||
|
*ptr = 1; // expected-warning{{Dereference of null pointer (loaded from variable 'ptr')}}
|
||
|
}
|