aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/array-constraint.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-05-27 02:01:50 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-05-27 02:01:50 +0000
commit1f3105e1eeece9ffdc14d7262c7af486ac76600a (patch)
treedf992e68b8b5dca387bd464a88a1928d17695e39 /test/Sema/array-constraint.c
parent0c99509927a0c7a48490486b9fec287b63e5c09c (diff)
Change diagnostic per suggestion, to make it a bit clearer what is
happening. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51574 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 3ed5215acc..8fa216d46a 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 {{variable length array declared outside of any function}}
+typedef int TA[I]; // expected-error {{arrays with static storage duration must have constant integer length}}
void strFunc(char *);
const char staticAry[] = "test";