diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-13 08:44:52 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-13 08:44:52 +0000 |
commit | fb75b2583eb82dc42cb8e5bd3c1eda1c661eb76d (patch) | |
tree | 56b9390d75b9f8ea4519c743f63bf8b4acb5ed30 /test/Analysis/array-struct.c | |
parent | a4f28ffac7ddfe97a38f089678acec39865d0117 (diff) |
Add test for incomplete struct pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59236 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r-- | test/Analysis/array-struct.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index ec4e154a55..ae33a13890 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c @@ -50,3 +50,12 @@ void f6() { p = __builtin_alloca(10); p[1] = 'a'; } + +struct s2; + +void g2(struct s2 *p); + +void f7() { + struct s2 *p = __builtin_alloca(10); + g2(p); +} |