From 7827520ce80aa16a2ef76abfe05f1f9c9bfefcf2 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 19 Dec 2009 08:11:05 +0000 Subject: Initialization improvements: addition of string initialization and a few small bug fixes in SemaInit, switch over SemaDecl to use it more often, and change a bunch of diagnostics which are different with the new initialization code. llvm-svn: 91767 --- clang/test/Sema/array-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Sema/array-init.c') 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}} } -- cgit v1.2.3