aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-07 00:59:53 +0000
committerChris Lattner <sabre@nondot.org>2008-12-07 00:59:53 +0000
commit211316faa26af4ce594a10bcfc204124fe363362 (patch)
tree841ad35003269f99f338f8862676dcdcafbebff1
parent7fd1df2a87729059a1589c47606f7a43f531c39f (diff)
a minor grammar fix
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60646 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Basic/DiagnosticKinds.def4
-rw-r--r--test/Sema/array-constraint.c2
-rw-r--r--test/Sema/typedef-variable-type.c2
-rw-r--r--test/Sema/vla.c6
4 files changed, 7 insertions, 7 deletions
diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def
index 63bf48c757..03787dfa62 100644
--- a/include/clang/Basic/DiagnosticKinds.def
+++ b/include/clang/Basic/DiagnosticKinds.def
@@ -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,
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()
{