From b9ec8f555f4559b7e395d3792460b692b05767ef Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Thu, 13 Nov 2008 08:44:52 +0000 Subject: Add test for incomplete struct pointer. llvm-svn: 59236 --- clang/test/Analysis/array-struct.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'clang/test/Analysis/array-struct.c') 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); +} -- cgit v1.2.3