xref: /minix3/external/bsd/llvm/dist/clang/test/Tooling/clang-check-analyzer.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s
2 
3 // CHECK: Dereference of null pointer
a(int * x)4 int a(int *x) { if(x){} *x = 47; }
5