diff options
author | Steve Naroff <snaroff@apple.com> | 2008-10-14 22:18:38 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-10-14 22:18:38 +0000 |
commit | 8afa98916ab7bbf2a789a0f7f5c0591d43fd25b3 (patch) | |
tree | 49cabc587557a2ba2118fb69b2eca712809d4e2a /clang/test/SemaObjC/conditional-expr-3.m | |
parent | 28106756affdd568e058bb45a1009e01f6ed81e3 (diff) | |
download | bcm5719-llvm-8afa98916ab7bbf2a789a0f7f5c0591d43fd25b3.tar.gz bcm5719-llvm-8afa98916ab7bbf2a789a0f7f5c0591d43fd25b3.zip |
Downgrade incompatibilities with objc qualified types (e.g. id <P>) to warnings.
Note: One day, we should consider moving the actual diags to ObjCQualifiedIdTypesAreCompatible(), since it has more information on the actual problem. GCC currently emits slightly more instructive errors for some cases involving protocols. I added a FIXME to the code.
llvm-svn: 57529
Diffstat (limited to 'clang/test/SemaObjC/conditional-expr-3.m')
-rw-r--r-- | clang/test/SemaObjC/conditional-expr-3.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/conditional-expr-3.m b/clang/test/SemaObjC/conditional-expr-3.m index de7b828a980..f5b04339e83 100644 --- a/clang/test/SemaObjC/conditional-expr-3.m +++ b/clang/test/SemaObjC/conditional-expr-3.m @@ -27,11 +27,11 @@ void f1(id x, A *a) { } void f2(id<P1> x) { - id<P0> l = x; // expected-error {{incompatible type initializing 'id<P1>', expected 'id<P0>'}} + id<P0> l = x; // expected-warning {{incompatible type initializing 'id<P1>', expected 'id<P0>'}} } void f3(A *a) { - id<P1> l = a; // expected-error {{incompatible type initializing 'A *', expected 'id<P1>'}} + id<P1> l = a; // expected-warning {{incompatible type initializing 'A *', expected 'id<P1>'}} } void f4(int cond, id x, A *a) { |