1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 -pedantic -Werror %s
2 int a1
[] = { 1, 3, 5 };
4 int a2
[] = { 1, 3, 5 };
9 // Element type may be dependent
11 // As might be the initializer list, value
12 int a5
[] = { sizeof(T
) };
14 int a6
[] = { t
.get() };
17 // Allowed by GNU extension
18 int a4
[] = {}; // expected-error {{zero size arrays}}
20 struct Incomplete
; // expected-note {{forward declaration of 'Incomplete'}}
22 Incomplete i
; // expected-error {{field has incomplete type 'Incomplete'}}
24 A a
[] = { 0 }; // PR13971: don't hang.