[cfe-commits] r58136 - /cfe/trunk/test/Analysis/array-struct.c

Zhongxing Xu xuzhongxing at gmail.com
Sat Oct 25 07:11:24 PDT 2008


Author: zhongxingxu
Date: Sat Oct 25 09:11:23 2008
New Revision: 58136

URL: http://llvm.org/viewvc/llvm-project?rev=58136&view=rev
Log:
Add StringLiteral test code.

Modified:
    cfe/trunk/test/Analysis/array-struct.c

Modified: cfe/trunk/test/Analysis/array-struct.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/array-struct.c?rev=58136&r1=58135&r2=58136&view=diff

==============================================================================
--- cfe/trunk/test/Analysis/array-struct.c (original)
+++ cfe/trunk/test/Analysis/array-struct.c Sat Oct 25 09:11:23 2008
@@ -1,4 +1,5 @@
 // RUN: clang -checker-simple -verify %s
+// RUN: clang -checker-simple -analyzer-store-region -verify %s
 
 struct s {
   int data;
@@ -17,3 +18,9 @@
   q->data = 3;
   d.data_array[9] = 17;
 }
+
+void f2() {
+  char *p = "/usr/local";
+  char (*q)[4];
+  q = &"abc";
+}





More information about the cfe-commits mailing list