commit | 54f2e18f206efbf5f80ffce4d3acec483b6bf959 | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Thu Nov 13 08:44:52 2008 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Thu Nov 13 08:44:52 2008 +0000 |
tree | 56b9390d75b9f8ea4519c743f63bf8b4acb5ed30 | |
parent | ca1c252d66275c761b9b0756af467656e4ea2df9 [diff] [blame] |
Add test for incomplete struct pointer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59236 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index ec4e154..ae33a13 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c
@@ -50,3 +50,12 @@ p = __builtin_alloca(10); p[1] = 'a'; } + +struct s2; + +void g2(struct s2 *p); + +void f7() { + struct s2 *p = __builtin_alloca(10); + g2(p); +}