commit | bb35151a166db2b4fee043bc90e60858ac2b7a89 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Sat Jul 07 23:00:31 2012 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Sat Jul 07 23:00:31 2012 +0000 |
tree | 3ac237e0ff9565c945a61bbd8e76bf4ceb901118 | |
parent | de31aa7f0ef71f5c162372e319cbc03c0924f074 [diff] [blame] |
Reject 'int a[1][];' in Sema rather than crashing in IR generation. Found by a misreduction of PR13290. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159905 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/array-bound-merge.cpp b/test/SemaCXX/array-bound-merge.cpp index 74f58fa..8fb2ec5 100644 --- a/test/SemaCXX/array-bound-merge.cpp +++ b/test/SemaCXX/array-bound-merge.cpp
@@ -7,3 +7,5 @@ int b[]; extern int c[1]; int c[] = {1,2}; // expected-error {{excess elements in array initializer}} + +int d[1][]; // expected-error {{array has incomplete element type 'int []'}}