aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-05-04 14:31:19 +0000
committerTed Kremenek <kremenek@apple.com>2009-05-04 14:31:19 +0000
commit0b9ad89d0d4ba79cde726753169f83a72dc3d994 (patch)
tree247c998ac32ffc8e335ee7dc68bb0003c898624e
parent8e5ebed3626fa963d1ac4d970fbf48512a986a13 (diff)
Rename no-outofbounds.c to xfail-no-outofbounds.c and split off that
test into a separate file to monitor the fact that BasicStoreManager passes the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70859 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/no-outofbounds-basicstore.c (renamed from test/Analysis/no-outofbounds.c)3
-rw-r--r--test/Analysis/xfail-no-outofbounds.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/test/Analysis/no-outofbounds.c b/test/Analysis/no-outofbounds-basicstore.c
index c07bf86a71..9a0b35906d 100644
--- a/test/Analysis/no-outofbounds.c
+++ b/test/Analysis/no-outofbounds-basicstore.c
@@ -1,6 +1,5 @@
-// RUN: clang-cc -checker-cfref -analyze -analyzer-store=region -verify %s &&
// RUN: clang-cc -checker-cfref -analyze -analyzer-store=basic -verify %s
-// XFAIL
+
void f() {
long x = 0;
char *y = (char*) &x;
diff --git a/test/Analysis/xfail-no-outofbounds.c b/test/Analysis/xfail-no-outofbounds.c
new file mode 100644
index 0000000000..e5c21c5b81
--- /dev/null
+++ b/test/Analysis/xfail-no-outofbounds.c
@@ -0,0 +1,7 @@
+// RUN: clang-cc -checker-cfref -analyze -analyzer-store=region -verify %s
+// XFAIL
+void f() {
+ long x = 0;
+ char *y = (char*) &x;
+ char c = y[0] + y[1] + y[2]; // no-warning
+}