summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-03-07 22:57:58 +0000
committerDouglas Gregor <dgregor@apple.com>2013-03-07 22:57:58 +0000
commitb5af2e9c5a4f995c3d2515d007b8b40659808a18 (patch)
treeb795d35bb0628e730f062b1a2f86f6911e629564 /clang/test/SemaObjC
parentc1a658314332fecdd04046fa714edcd14b5484ad (diff)
downloadbcm5719-llvm-b5af2e9c5a4f995c3d2515d007b8b40659808a18.tar.gz
bcm5719-llvm-b5af2e9c5a4f995c3d2515d007b8b40659808a18.zip
Improve LLDB's implicit cast-to-id to work with C++11 auto and any Objective-C object type <rdar://problem/13338107>.
llvm-svn: 176665
Diffstat (limited to 'clang/test/SemaObjC')
-rw-r--r--clang/test/SemaObjC/debugger-cast-result-to-id.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/debugger-cast-result-to-id.m b/clang/test/SemaObjC/debugger-cast-result-to-id.m
index 00a02be2c30..ecf3e74ba79 100644
--- a/clang/test/SemaObjC/debugger-cast-result-to-id.m
+++ b/clang/test/SemaObjC/debugger-cast-result-to-id.m
@@ -6,6 +6,8 @@ extern __unknown_anytype test1();
void test_unknown_anytype_receiver() {
(void)(int)[[test0 unknownMethod] otherUnknownMethod];;
(void)(id)[[test1() unknownMethod] otherUnknownMethod];
+ id x = test0;
+ id y = test1();
}
// rdar://10988847
OpenPOWER on IntegriCloud