diff options
Diffstat (limited to 'clang/test/Sema')
| -rw-r--r-- | clang/test/Sema/array-init.c | 2 | ||||
| -rw-r--r-- | clang/test/Sema/init.c | 2 | ||||
| -rw-r--r-- | clang/test/Sema/wchar.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Sema/array-init.c b/clang/test/Sema/array-init.c index fbcf06bd162..45d31838529 100644 --- a/clang/test/Sema/array-init.c +++ b/clang/test/Sema/array-init.c @@ -167,7 +167,7 @@ void charArrays() { void variableArrayInit() { int a = 4; - char strlit[a] = "foo"; //expected-error{{variable-sized object may not be initialized}} + char strlit[a] = "foo"; //expected-error{{array initializer must be an initializer list or string literal}} int b[a] = { 1, 2, 4 }; //expected-error{{variable-sized object may not be initialized}} } diff --git a/clang/test/Sema/init.c b/clang/test/Sema/init.c index 9ebbce97584..c2712480c61 100644 --- a/clang/test/Sema/init.c +++ b/clang/test/Sema/init.c @@ -20,7 +20,7 @@ int *h = &x; int test() { int a[10]; -int b[10] = a; // expected-error {{initialization with '{...}' expected}} +int b[10] = a; // expected-error {{array initializer must be an initializer list}} int +; // expected-error {{expected identifier or '('}} } diff --git a/clang/test/Sema/wchar.c b/clang/test/Sema/wchar.c index edec2b30cea..28ec2f14ceb 100644 --- a/clang/test/Sema/wchar.c +++ b/clang/test/Sema/wchar.c @@ -17,6 +17,6 @@ int check_wchar_size[sizeof(*L"") == sizeof(wchar_t) ? 1 : -1]; void foo() { WCHAR_T_TYPE t1[] = L"x"; wchar_t tab[] = L"x"; - WCHAR_T_TYPE t2[] = "x"; // expected-error {{initialization}} - char t3[] = L"x"; // expected-error {{initialization}} + WCHAR_T_TYPE t2[] = "x"; // expected-error {{initializer}} + char t3[] = L"x"; // expected-error {{initializer}} } |

