diff options
Diffstat (limited to 'test/Sema')
-rw-r--r-- | test/Sema/array-constraint.c | 2 | ||||
-rw-r--r-- | test/Sema/typedef-variable-type.c | 2 |
2 files changed, 2 insertions, 2 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"; diff --git a/test/Sema/typedef-variable-type.c b/test/Sema/typedef-variable-type.c index 3abca4314e..4ced926264 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{{variable length array declared outside of any function}} +typedef int (*a)[!.0]; // expected-error{{arrays with static storage duration must have constant integer length}} |