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 | b9ec8f555f4559b7e395d3792460b692b05767ef (patch) | |
tree | 10b2fdcbb73cfb6c59e3ec21e16b17ce2d22462c /clang/test/Analysis/array-struct.c | |
parent | 29188c2948715824b62d06a18642ee6e8975aee1 (diff) | |
download | bcm5719-llvm-b9ec8f555f4559b7e395d3792460b692b05767ef.tar.gz bcm5719-llvm-b9ec8f555f4559b7e395d3792460b692b05767ef.zip |
Add test for incomplete struct pointer.
llvm-svn: 59236
Diffstat (limited to 'clang/test/Analysis/array-struct.c')
-rw-r--r-- | clang/test/Analysis/array-struct.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Analysis/array-struct.c b/clang/test/Analysis/array-struct.c index ec4e154a55e..ae33a138908 100644 --- a/clang/test/Analysis/array-struct.c +++ b/clang/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); +} |