]> granicus.if.org Git - clang/commitdiff
Rename no-outofbounds.c to xfail-no-outofbounds.c and split off that
authorTed Kremenek <kremenek@apple.com>
Mon, 4 May 2009 14:31:19 +0000 (14:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 4 May 2009 14:31:19 +0000 (14:31 +0000)
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

test/Analysis/no-outofbounds-basicstore.c [moved from test/Analysis/no-outofbounds.c with 66% similarity]
test/Analysis/xfail-no-outofbounds.c [new file with mode: 0644]

similarity index 66%
rename from test/Analysis/no-outofbounds.c
rename to test/Analysis/no-outofbounds-basicstore.c
index c07bf86a71e2a27b1bb27dba20310672ad7ab521..9a0b35906d7cf056f57e3be1ae2ad23c9ec1f637 100644 (file)
@@ -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 (file)
index 0000000..e5c21c5
--- /dev/null
@@ -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
+}