diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/Tooling/clang-check-analyzer.cpp | |
parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) | |
download | src-bfef399519ca9b8a4b4c6b563253bad7e0eeffe0.tar.gz src-bfef399519ca9b8a4b4c6b563253bad7e0eeffe0.zip |
Notes
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 000000000000..16cf7ce603ba --- /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; } |