summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/array-init.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-12-19 08:11:05 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-12-19 08:11:05 +0000
commit7827520ce80aa16a2ef76abfe05f1f9c9bfefcf2 (patch)
tree0c29755e5ff79449b85a9b6ac4e03073abf02894 /clang/test/Sema/array-init.c
parent5103effb1d0860c1d3132afd7d4e052967f41f48 (diff)
downloadbcm5719-llvm-7827520ce80aa16a2ef76abfe05f1f9c9bfefcf2.tar.gz
bcm5719-llvm-7827520ce80aa16a2ef76abfe05f1f9c9bfefcf2.zip
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
Diffstat (limited to 'clang/test/Sema/array-init.c')
-rw-r--r--clang/test/Sema/array-init.c2
1 files changed, 1 insertions, 1 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}}
}
OpenPOWER on IntegriCloud