[cfe-commits] r58565 - /cfe/trunk/test/Analysis/array-struct.c
Zhongxing Xu
xuzhongxing at gmail.com
Sun Nov 2 05:17:47 PST 2008
Author: zhongxingxu
Date: Sun Nov 2 07:17:44 2008
New Revision: 58565
URL: http://llvm.org/viewvc/llvm-project?rev=58565&view=rev
Log:
Add function side-effect test cast.
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=58565&r1=58564&r2=58565&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/array-struct.c (original)
+++ cfe/trunk/test/Analysis/array-struct.c Sun Nov 2 07:17:44 2008
@@ -10,6 +10,8 @@
int data;
} STYPE;
+void g1(struct s* p);
+
void f(void) {
int a[10];
int (*p)[10];
@@ -37,3 +39,8 @@
int a[] = { 1, 2, 3};
int b[3] = { 1, 2 };
}
+
+void f5() {
+ struct s data;
+ g1(&data);
+}
More information about the cfe-commits
mailing list