Mercurial > hg > CbC > CbC_llvm
diff clang/test/Sema/crash-invalid-array.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line diff
--- a/clang/test/Sema/crash-invalid-array.c Wed Jul 21 10:27:27 2021 +0900 +++ b/clang/test/Sema/crash-invalid-array.c Wed Nov 09 17:45:10 2022 +0900 @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple=x86_64-apple-darwin -fsyntax-only -verify %s // PR6913 -int main() +int main(void) { int x[10][10]; int (*p)[] = x; @@ -10,7 +10,7 @@ for(i = 0; i < 10; ++i) { - p[i][i] = i; // expected-error {{subscript of pointer to incomplete type 'int []'}} + p[i][i] = i; // expected-error {{subscript of pointer to incomplete type 'int[]'}} } }