diff options
Diffstat (limited to 'test/Tooling/clang-check-analyzer.cpp')
-rw-r--r-- | test/Tooling/clang-check-analyzer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Tooling/clang-check-analyzer.cpp b/test/Tooling/clang-check-analyzer.cpp new file mode 100644 index 0000000..16cf7ce --- /dev/null +++ b/test/Tooling/clang-check-analyzer.cpp @@ -0,0 +1,4 @@ +// RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s + +// CHECK: Dereference of null pointer +int a(int *x) { if(x){} *x = 47; } |