[cfe-commits] r53071 - /cfe/trunk/test/Sema/incomplete-decl.c

Chris Lattner sabre at nondot.org
Wed Jul 2 20:53:40 PDT 2008


Author: lattner
Date: Wed Jul  2 22:53:40 2008
New Revision: 53071

URL: http://llvm.org/viewvc/llvm-project?rev=53071&view=rev
Log:
new testcase

Modified:
    cfe/trunk/test/Sema/incomplete-decl.c

Modified: cfe/trunk/test/Sema/incomplete-decl.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/incomplete-decl.c?rev=53071&r1=53070&r2=53071&view=diff

==============================================================================
--- cfe/trunk/test/Sema/incomplete-decl.c (original)
+++ cfe/trunk/test/Sema/incomplete-decl.c Wed Jul  2 22:53:40 2008
@@ -17,3 +17,7 @@
   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 (*)[]'}}
+





More information about the cfe-commits mailing list