]> granicus.if.org Git - clang/commitdiff
Add test for incomplete struct pointer.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 13 Nov 2008 08:44:52 +0000 (08:44 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 13 Nov 2008 08:44:52 +0000 (08:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59236 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/array-struct.c

index ec4e154a55e9f31fa16ae6c3d253a34876758331..ae33a138908c524e0f35694eaedc2c8a8ac44bd4 100644 (file)
@@ -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);
+}