aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}