1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | char x1[]("hello"); |
5 | extern char x1[6]; |
6 | |
7 | char x2[] = "hello"; |
8 | extern char x2[6]; |
9 | |
10 | char x3[] = { "hello" }; |
11 | extern char x3[6]; |
12 | |
13 | wchar_t x4[](L"hello"); |
14 | extern wchar_t x4[6]; |
15 | |
16 | wchar_t x5[] = L"hello"; |
17 | extern wchar_t x5[6]; |
18 | |
19 | wchar_t x6[] = { L"hello" }; |
20 | extern wchar_t x6[6]; |
21 |