]> granicus.if.org Git - clang/commitdiff
Add function side-effect test cast.
authorZhongxing Xu <xuzhongxing@gmail.com>
Sun, 2 Nov 2008 13:17:44 +0000 (13:17 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sun, 2 Nov 2008 13:17:44 +0000 (13:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58565 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/array-struct.c

index ed8b0e5cf35f7252ef2d77c673976092bd047932..d6d365d8bb136464c1bb0bfaae6ba5763e8ca428 100644 (file)
@@ -10,6 +10,8 @@ typedef struct {
   int data;
 } STYPE;
 
+void g1(struct s* p);
+
 void f(void) {
   int a[10];
   int (*p)[10];
@@ -37,3 +39,8 @@ void f4() {
   int a[] = { 1, 2, 3};
   int b[3] = { 1, 2 };
 }
+
+void f5() {
+  struct s data;
+  g1(&data);
+}