llvm-project/clang/test/Analysis/diagnostics/diag-cross-file-boundaries.h

5 lines
101 B
C

static void f() {
int *p = 0;
*p = 1; // expected-warning{{Dereference of null pointer}}
}