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, 6 insertions, 1 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c
index 5eac795aae..e35985c79d 100644
--- a/test/Analysis/array-struct.c
+++ b/test/Analysis/array-struct.c
@@ -1,6 +1,9 @@
// RUN: clang -checker-simple -verify %s
-struct s {};
+struct s {
+ int data;
+ int data_array[10];
+};
void f(void) {
int a[10];
@@ -11,4 +14,6 @@ void f(void) {
struct s d;
struct s *q;
q = &d;
+ q->data = 3;
+ d.data_array[9] = 17;
}