diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-18 20:28:46 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-18 20:28:46 +0000 |
commit | 396f0bfd4b2189452914893ce69f5fb068d0ec22 (patch) | |
tree | a793a90004a89a91a413787a3148991523fcf37f /test/Sema/array-init.c | |
parent | 1e2118954730cab40675d510a29400bea0d19d84 (diff) |
Support initialization of incomplete array with zero size (as
extension).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-init.c')
-rw-r--r-- | test/Sema/array-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/array-init.c b/test/Sema/array-init.c index 7aecdda40e..24a0070c1f 100644 --- a/test/Sema/array-init.c +++ b/test/Sema/array-init.c @@ -158,7 +158,7 @@ void charArrays() char c3[5] = { "Hello" }; char c4[4] = { "Hello" }; //expected-warning{{initializer-string for char array is too long}} - int i3[] = {}; //expected-error{{at least one initializer value required to size array}} expected-warning{{use of GNU empty initializer extension}} + int i3[] = {}; //expected-warning{{zero size arrays are an extension}} expected-warning{{use of GNU empty initializer extension}} } void variableArrayInit() { |