aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/array-constraint.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-12-07 00:20:55 +0000
committerAnders Carlsson <andersca@mac.com>2008-12-07 00:20:55 +0000
commit96e05bc09070aaa7c18d3dd3ff13125a43532f69 (patch)
treefd011b20fafbe130808d2038f5e6c022e5c7ace7 /test/Sema/array-constraint.c
parent5dd412901196305e7c6dd053880f711ca5419763 (diff)
Improve VLA diagnostics/sema checking. Fixes PR2361 and PR2352.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-constraint.c')
-rw-r--r--test/Sema/array-constraint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c
index 8fa216d46a..7763e7923d 100644
--- a/test/Sema/array-constraint.c
+++ b/test/Sema/array-constraint.c
@@ -41,7 +41,7 @@ void check_size() {
}
static int I;
-typedef int TA[I]; // expected-error {{arrays with static storage duration must have constant integer length}}
+typedef int TA[I]; // expected-error {{variable length array declaration not allowed in file scope}}
void strFunc(char *);
const char staticAry[] = "test";