]> granicus.if.org Git - clang/commitdiff
Add no-warning to test case.
authorZhongxing Xu <xuzhongxing@gmail.com>
Mon, 24 Nov 2008 23:45:56 +0000 (23:45 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Mon, 24 Nov 2008 23:45:56 +0000 (23:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59995 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/array-struct.c

index 914d6e2e7bc98586941ad560a1b12b709edefced..3b6bc82315f68cc8af50e3355dafe4d8e46ea1e8 100644 (file)
@@ -62,7 +62,7 @@ void f7() {
 
 void f8() {
   int a[10];
-  a[sizeof(a)/sizeof(int) - 1] = 1;
+  a[sizeof(a)/sizeof(int) - 1] = 1; // no-warning
 }
 
 void f9() {