llvm-project/clang/test/Analysis/diagnostics/plist-multi-file.h

4 lines
115 B
C

void foo(int *ptr) {
*ptr = 1; // expected-warning{{Dereference of null pointer (loaded from variable 'ptr')}}
}