diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-24 08:51:58 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-24 08:51:58 +0000 |
commit | 72e1682bbdfd497ce838d648bb2cb6047c015f6f (patch) | |
tree | c82a44a5f5624a6f956929512f1a5e64be02e7d8 /test/Analysis/array-struct.c | |
parent | b451bc19423ba7e6339326f62c6c67e729537267 (diff) |
Add random array and struct test code for SCA.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58085 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r-- | test/Analysis/array-struct.c | 7 |
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; } |