mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-08 09:03:18 +00:00
a minor grammar fix
llvm-svn: 60646
This commit is contained in:
parent
a1a9c28d30
commit
b3582b939e
@ -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,
|
||||
|
@ -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";
|
||||
|
@ -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}}
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user