commit | a312ce2bdaaff62f21d560bad6cb0519f613d334 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Fri Feb 08 00:48:24 2008 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Fri Feb 08 00:48:24 2008 +0000 |
tree | 9780cf9b29618dbbdbc8b88ec198cf3aa2119991 | |
parent | dfab6cb59a703f2ce4d58371652ce879f4c85a09 [diff] [blame] |
Improve diagnostic for illegal array initialization. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46869 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/init.c b/test/Sema/init.c index bbad04c..9d0d733 100644 --- a/test/Sema/init.c +++ b/test/Sema/init.c
@@ -13,3 +13,7 @@ void *g = &x; int *h = &x; +int test() { +int a[10]; +int b[10] = a; // expected-error {{initialization with "{...}" expected}} +}