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,
}
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";
// 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}}
// 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()
{