netbsd/external/bsd/llvm/dist/clang/test/Tooling/clang-check-analyzer.cpp
2014-01-15 10:53:42 +01:00

5 lines
134 B
C++

// RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s
// CHECK: Dereference of null pointer
int a(int *x) { if(x){} *x = 47; }