summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/misc-ps-region-store.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-12-17 01:44:13 +0000
committerTed Kremenek <kremenek@apple.com>2009-12-17 01:44:13 +0000
commit85bcc986d63fd6a7f2b5e6753dd7db41c17c4220 (patch)
tree4775d08d4eba0bdce329dd7b68f168b77dcab0db /clang/test/Analysis/misc-ps-region-store.cpp
parent2e2b2581583b4f59df907cb1e0455fb67946e487 (diff)
downloadbcm5719-llvm-85bcc986d63fd6a7f2b5e6753dd7db41c17c4220.tar.gz
bcm5719-llvm-85bcc986d63fd6a7f2b5e6753dd7db41c17c4220.zip
Add failing test case for C++ static analysis.
llvm-svn: 91578
Diffstat (limited to 'clang/test/Analysis/misc-ps-region-store.cpp')
-rw-r--r--clang/test/Analysis/misc-ps-region-store.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Analysis/misc-ps-region-store.cpp b/clang/test/Analysis/misc-ps-region-store.cpp
new file mode 100644
index 00000000000..c1e03bb0d94
--- /dev/null
+++ b/clang/test/Analysis/misc-ps-region-store.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -triple i386-apple-darwin9 -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks %s
+// XFAIL: *
+
+// This test case currently crashes because of an assertion failure.
+char &test1_aux();
+char *test1() {
+ return &test1_aux();
+}
OpenPOWER on IntegriCloud