summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/protocol-undef.m
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-03-01 16:12:44 +0000
committerSteve Naroff <snaroff@apple.com>2009-03-01 16:12:44 +0000
commit114aecb26bfab1496b86fd6007669a3572a734b0 (patch)
treef472d7e804d3258104f2f892b1636782150d724a /clang/test/SemaObjC/protocol-undef.m
parent3d23bb03c12e462259331cafd1f2f264a0a5b16b (diff)
downloadbcm5719-llvm-114aecb26bfab1496b86fd6007669a3572a734b0.tar.gz
bcm5719-llvm-114aecb26bfab1496b86fd6007669a3572a734b0.zip
Fix <rdar://problem/6619539> incompatible pointer types sending 'XCElementSpacer *', expected 'XCElement *' (not handling protocol signatures correctly?).
- Reworked ASTContext::canAssignObjCInterfaces(). - Added ObjCProtocolDecl::lookupProtocolNamed(). llvm-svn: 65773
Diffstat (limited to 'clang/test/SemaObjC/protocol-undef.m')
-rw-r--r--clang/test/SemaObjC/protocol-undef.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/protocol-undef.m b/clang/test/SemaObjC/protocol-undef.m
index c35d3f86360..a490fa26fd8 100644
--- a/clang/test/SemaObjC/protocol-undef.m
+++ b/clang/test/SemaObjC/protocol-undef.m
@@ -40,8 +40,7 @@ typedef NSObject <OzzyActionDelegateP> OzzyActionDelegate;
- (void)_recalculateStoredArraysForAnchor:(OzzyAnchor *)anchor {
Ozzy * contentGroup = anchor.contentGroup;
if (contentGroup == ((void *)0)) {
- // GCC doesn't warn about the following (which seems wrong).
- contentGroup = anchor; // expected-warning{{incompatible pointer types assigning 'OzzyAnchor *', expected 'Ozzy *'}}
+ contentGroup = anchor;
}
}
@end
OpenPOWER on IntegriCloud