diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Sema/array-constraint.c | 2 | ||||
-rw-r--r-- | test/Sema/typedef-variable-type.c | 2 | ||||
-rw-r--r-- | test/Sema/vla.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c index 7763e7923d..596d19f77c 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 declaration not allowed in file scope}} +typedef int TA[I]; // expected-error {{variable length array declaration not allowed at file scope}} void strFunc(char *); const char staticAry[] = "test"; diff --git a/test/Sema/typedef-variable-type.c b/test/Sema/typedef-variable-type.c index 346117ef18..e982637feb 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{{variably modified type declaration not allowed in file scope}} +typedef int (*a)[!.0]; // expected-error{{variably modified type declaration not allowed at file scope}} diff --git a/test/Sema/vla.c b/test/Sema/vla.c index bccd5e6566..4b7a746b46 100644 --- a/test/Sema/vla.c +++ b/test/Sema/vla.c @@ -27,10 +27,10 @@ void f2(unsigned int m) // PR2361 int i; -int c[][i]; // expected-error {{variably modified type declaration not allowed in file scope}} -int d[i]; // expected-error {{variable length array declaration not allowed in file scope}} +int c[][i]; // expected-error {{variably modified type declaration not allowed at file scope}} +int d[i]; // expected-error {{variable length array declaration not allowed at file scope}} -int (*e)[i]; // expected-error {{variably modified type declaration not allowed in file scope}} +int (*e)[i]; // expected-error {{variably modified type declaration not allowed at file scope}} void f3() { |