From 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 20 Feb 2011 13:06:31 +0000 Subject: Vendor import of clang trunk r126079: http://llvm.org/svn/llvm-project/cfe/trunk@126079 --- test/Sema/array-constraint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/Sema/array-constraint.c') diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c index 9fcac25..bee33c0 100644 --- a/test/Sema/array-constraint.c +++ b/test/Sema/array-constraint.c @@ -36,7 +36,7 @@ pfunc xx(int f[](void)) { // expected-error {{'f' declared as array of functions void check_size() { float f; int size_not_int[f]; // expected-error {{size of array has non-integer type 'float'}} - int negative_size[1-2]; // expected-error{{array size is negative}} + int negative_size[1-2]; // expected-error{{array with a negative size}} int zero_size[0]; // expected-warning{{zero size arrays are an extension}} } @@ -46,7 +46,7 @@ typedef int TA[I]; // expected-error {{variable length array declaration not all void strFunc(char *); // expected-note{{passing argument to parameter here}} const char staticAry[] = "test"; void checkStaticAry() { - strFunc(staticAry); // expected-warning{{passing 'char const [5]' to parameter of type 'char *' discards qualifiers}} + strFunc(staticAry); // expected-warning{{passing 'const char [5]' to parameter of type 'char *' discards qualifiers}} } -- cgit v1.1