summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/bad-receiver-1.m
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2013-03-01 09:20:14 +0000
committerJohn McCall <rjmccall@apple.com>2013-03-01 09:20:14 +0000
commit80c93a0793c4c2afab4e5b4155d91f573fe7bd1c (patch)
treefaebf940c69e2d0f3a7a937912f9ab3b1628ae97 /clang/test/SemaObjC/bad-receiver-1.m
parent323771b3f1970bf7d17c2944bf24248267964c51 (diff)
downloadbcm5719-llvm-80c93a0793c4c2afab4e5b4155d91f573fe7bd1c.tar.gz
bcm5719-llvm-80c93a0793c4c2afab4e5b4155d91f573fe7bd1c.zip
Perform the receiver-expression transformations regardless of
whether we already have a method. Fixes a bug where we were failing to properly contextually convert a message receiver during template instantiation. As a side-effect, we now actually perform correct method lookup after adjusting a message-send to integral or non-ObjC pointer types (legal outside of ARC). rdar://13305374 llvm-svn: 176339
Diffstat (limited to 'clang/test/SemaObjC/bad-receiver-1.m')
-rw-r--r--clang/test/SemaObjC/bad-receiver-1.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/bad-receiver-1.m b/clang/test/SemaObjC/bad-receiver-1.m
index fe3eecff2bc..fe7f7f5b446 100644
--- a/clang/test/SemaObjC/bad-receiver-1.m
+++ b/clang/test/SemaObjC/bad-receiver-1.m
@@ -7,8 +7,7 @@
int objc_lookUpClass(const char*);
void __raiseExc1() {
- [objc_lookUpClass("NSString") retain]; // expected-warning {{receiver type 'int' is not 'id'}} \
- expected-warning {{method '-retain' not found}}
+ [objc_lookUpClass("NSString") retain]; // expected-warning {{receiver type 'int' is not 'id'}}
}
typedef const struct __CFString * CFStringRef;
OpenPOWER on IntegriCloud