]> granicus.if.org Git - clang/commitdiff
new testcase
authorChris Lattner <sabre@nondot.org>
Thu, 3 Jul 2008 03:53:40 +0000 (03:53 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 3 Jul 2008 03:53:40 +0000 (03:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53071 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/incomplete-decl.c

index 047c24266e38647811d8f0788914e6ff2d51860d..fedf2c69f7c05309f6a8962c6711aee0c547f459 100644 (file)
@@ -17,3 +17,7 @@ void func() {
   void b; // expected-error {{variable has incomplete type 'void'}}
   struct foo f; // expected-error {{variable has incomplete type 'struct foo'}}
 }
+
+int h[]; 
+int (*i)[] = &h+1; // expected-error {{arithmetic on pointer to incomplete type 'int (*)[]'}}
+