From: Chris Lattner Date: Thu, 3 Jul 2008 03:53:40 +0000 (+0000) Subject: new testcase X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e60cff1089afa6368c57d716e4a295c5f1224e04;p=clang new testcase git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53071 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/incomplete-decl.c b/test/Sema/incomplete-decl.c index 047c24266e..fedf2c69f7 100644 --- a/test/Sema/incomplete-decl.c +++ b/test/Sema/incomplete-decl.c @@ -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 (*)[]'}} +