llvm-for-llvmta/tools/clang/test/Analysis/html-diag-singlefile.h

5 lines
101 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
static void f() {
int *p = 0;
*p = 1; // expected-warning{{Dereference of null pointer}}
}