llvm-project/clang/test/Analysis/scan-build/Inputs/single_null_dereference.c

6 lines
89 B
C

int main() {
int *p = 0;
*p = 7; // We expect a diagnostic about this.
return 0;
}