aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/typedef-variable-type.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/typedef-variable-type.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/typedef-variable-type.c')
-rw-r--r--test/Sema/typedef-variable-type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/typedef-variable-type.c b/test/Sema/typedef-variable-type.c
index 4ced926264..346117ef18 100644
--- a/test/Sema/typedef-variable-type.c
+++ b/test/Sema/typedef-variable-type.c
@@ -1,3 +1,3 @@
// RUN: clang %s -verify -fsyntax-only -pedantic
-typedef int (*a)[!.0]; // expected-error{{arrays with static storage duration must have constant integer length}}
+typedef int (*a)[!.0]; // expected-error{{variably modified type declaration not allowed in file scope}}