]> granicus.if.org Git - clang/commitdiff
add test case for r74407.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 3 Jul 2009 05:33:23 +0000 (05:33 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 3 Jul 2009 05:33:23 +0000 (05:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74761 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/concrete-address.c [new file with mode: 0644]

diff --git a/test/Analysis/concrete-address.c b/test/Analysis/concrete-address.c
new file mode 100644 (file)
index 0000000..84ebb21
--- /dev/null
@@ -0,0 +1,7 @@
+// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic --verify %s &&
+// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region --verify %s
+
+void foo() {
+  int *p = (int*) 0x10000; // Should not crash here.
+  *p = 3;
+}