[cfe-commits] r60646 - in /cfe/trunk: include/clang/Basic/DiagnosticKinds.def test/Sema/array-constraint.c test/Sema/typedef-variable-type.c test/Sema/vla.c
Chris Lattner
sabre at nondot.org
Sat Dec 6 16:59:53 PST 2008
Author: lattner
Date: Sat Dec 6 18:59:53 2008
New Revision: 60646
URL: http://llvm.org/viewvc/llvm-project?rev=60646&view=rev
Log:
a minor grammar fix
Modified:
cfe/trunk/include/clang/Basic/DiagnosticKinds.def
cfe/trunk/test/Sema/array-constraint.c
cfe/trunk/test/Sema/typedef-variable-type.c
cfe/trunk/test/Sema/vla.c
Modified: cfe/trunk/include/clang/Basic/DiagnosticKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticKinds.def?rev=60646&r1=60645&r2=60646&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticKinds.def (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticKinds.def Sat Dec 6 18:59:53 2008
@@ -999,13 +999,13 @@
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,
Modified: cfe/trunk/test/Sema/array-constraint.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/array-constraint.c?rev=60646&r1=60645&r2=60646&view=diff
==============================================================================
--- cfe/trunk/test/Sema/array-constraint.c (original)
+++ cfe/trunk/test/Sema/array-constraint.c Sat Dec 6 18:59:53 2008
@@ -41,7 +41,7 @@
}
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";
Modified: cfe/trunk/test/Sema/typedef-variable-type.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/typedef-variable-type.c?rev=60646&r1=60645&r2=60646&view=diff
==============================================================================
--- cfe/trunk/test/Sema/typedef-variable-type.c (original)
+++ cfe/trunk/test/Sema/typedef-variable-type.c Sat Dec 6 18:59:53 2008
@@ -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}}
Modified: cfe/trunk/test/Sema/vla.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/vla.c?rev=60646&r1=60645&r2=60646&view=diff
==============================================================================
--- cfe/trunk/test/Sema/vla.c (original)
+++ cfe/trunk/test/Sema/vla.c Sat Dec 6 18:59:53 2008
@@ -27,10 +27,10 @@
// 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()
{
More information about the cfe-commits
mailing list