[cfe-commits] r65037 - /cfe/trunk/test/Sema/struct-decl.c

Zhongxing Xu xuzhongxing at gmail.com
Thu Feb 19 00:45:23 PST 2009


Author: zhongxingxu
Date: Thu Feb 19 02:45:23 2009
New Revision: 65037

URL: http://llvm.org/viewvc/llvm-project?rev=65037&view=rev
Log:
fix test case

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

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

==============================================================================
--- cfe/trunk/test/Sema/struct-decl.c (original)
+++ cfe/trunk/test/Sema/struct-decl.c Thu Feb 19 02:45:23 2009
@@ -6,7 +6,7 @@
 
 struct foo {
 	char name[(int)&((struct bar *)0)->n];
-	char name2[(int)&((struct bar *)0)->n - 1]; //expected-error{{fields must have a constant size}}
+	char name2[(int)&((struct bar *)0)->n - 1]; //expected-error{{array size is negative}}
 };
 
 // PR3430





More information about the cfe-commits mailing list