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