aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/array-constraint.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-04 18:04:52 +0000
committerChris Lattner <sabre@nondot.org>2008-01-04 18:04:52 +0000
commit5cf216b7fa64b933b60743b0b26053e8e7aa87be (patch)
treeef24405eb359cfb47bd12645c2e9d25574525a51 /test/Sema/array-constraint.c
parent6d9b9e4f61e790d71e134cb84ec21230fb41341f (diff)
Merge all the 'assignment' diagnostic code into one routine, decloning
it from several places. This merges the diagnostics, making them more uniform and fewer in number. This also simplifies and cleans up the code. Some highlights: 1. This removes a bunch of very-similar diagnostics. 2. This renames AssignmentCheckResult -> AssignConvertType 3. This merges PointerFromInt + IntFromPointer which were always treated the same. 4. This updates a bunch of test cases that have minor changes to the produced diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-constraint.c')
-rw-r--r--test/Sema/array-constraint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c
index f281df1aff..df79681d06 100644
--- a/test/Sema/array-constraint.c
+++ b/test/Sema/array-constraint.c
@@ -45,7 +45,7 @@ typedef int TA[I]; // expected-error {{variable length array declared outside of
void strFunc(char *);
const char staticAry[] = "test";
int checkStaticAry() {
- strFunc(staticAry); // expected-warning{{passing 'char const [5]' to 'char *' discards qualifiers}}
+ strFunc(staticAry); // expected-warning{{passing 'char const [5]' discards qualifiers, expected 'char *'}}
}