a minor grammar fix

llvm-svn: 60646
This commit is contained in:
Chris Lattner 2008-12-07 00:59:53 +00:00
parent a1a9c28d30
commit b3582b939e
4 changed files with 7 additions and 7 deletions

View File

@ -999,13 +999,13 @@ DIAG(warn_enum_too_large, WARNING,
DIAG(warn_illegal_constant_array_size, EXTENSION,
"size of static array must be an integer constant expression")
DIAG(err_vla_decl_in_file_scope, ERROR,
"variable length array declaration not allowed in file scope")
"variable length array declaration not allowed at file scope")
DIAG(err_vla_decl_has_static_storage, ERROR,
"variable length array declaration can not have 'static' storage duration")
DIAG(err_vla_decl_has_extern_linkage, ERROR,
"variable length array declaration can not have 'extern' linkage")
DIAG(err_vm_decl_in_file_scope, ERROR,
"variably modified type declaration not allowed in file scope")
"variably modified type declaration not allowed at file scope")
DIAG(err_vm_decl_has_extern_linkage, ERROR,
"variably modified type declaration can not have 'extern' linkage")
DIAG(err_typecheck_field_variable_size, ERROR,

View File

@ -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";

View File

@ -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}}

View File

@ -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()
{