From d87682ed3c3e5d748d13a5c4f1cbb267aa756b31 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 17 Dec 2009 01:44:13 +0000 Subject: [PATCH] Add failing test case for C++ static analysis. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91578 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/misc-ps-region-store.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Analysis/misc-ps-region-store.cpp diff --git a/test/Analysis/misc-ps-region-store.cpp b/test/Analysis/misc-ps-region-store.cpp new file mode 100644 index 0000000000..c1e03bb0d9 --- /dev/null +++ b/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(); +} -- 2.50.1