]> granicus.if.org Git - clang/commitdiff
fix test case
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 19 Feb 2009 08:45:23 +0000 (08:45 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 19 Feb 2009 08:45:23 +0000 (08:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65037 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/struct-decl.c

index ec006b484f0a1b742ce1fc8df3bdf894d33b1932..cdc9eaae3bbd336f4afc83130effb1bce86a9f56 100644 (file)
@@ -6,7 +6,7 @@ struct bar {
 
 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