diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-02 13:17:44 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-02 13:17:44 +0000 |
commit | 04b90bc00fc6ce8bc6c559e56220ceb77cdbccf6 (patch) | |
tree | 192cb3144f4434373c9b7f1f1c93834f1205f485 /test/Analysis/array-struct.c | |
parent | d463d44c6a1c8d6682419aaa9b7eee6ebed62e09 (diff) |
Add function side-effect test cast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58565 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, 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); +} |