aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/array-struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r--test/Analysis/array-struct.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c
index ed8b0e5cf3..d6d365d8bb 100644
--- a/test/Analysis/array-struct.c
+++ b/test/Analysis/array-struct.c
@@ -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);
+}