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