diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-04 18:04:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-04 18:04:52 +0000 |
commit | 5cf216b7fa64b933b60743b0b26053e8e7aa87be (patch) | |
tree | ef24405eb359cfb47bd12645c2e9d25574525a51 /test/Parser/implicit-casts.c | |
parent | 6d9b9e4f61e790d71e134cb84ec21230fb41341f (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/Parser/implicit-casts.c')
-rw-r--r-- | test/Parser/implicit-casts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Parser/implicit-casts.c b/test/Parser/implicit-casts.c index a07155eea4..3d055263bc 100644 --- a/test/Parser/implicit-casts.c +++ b/test/Parser/implicit-casts.c @@ -1,4 +1,4 @@ -// RUN: clang -fsyntax-only -verify %s +// RUN: clang -fsyntax-only -verify -pedantic %s _Complex double X; void test1(int c) { X = 5; @@ -14,7 +14,7 @@ void test2() { } int test3() { int a[2]; - a[0] = test3; // expected-warning{{incompatible types assigning 'int (void)' to 'int'}} + a[0] = test3; // expected-warning{{incompatible pointer/int conversion assigning 'int (void)', expected 'int'}} } short x; void test4(char c) { x += c; } int y; void test5(char c) { y += c; } |