aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjCXX/deduction.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjCXX/deduction.mm')
-rw-r--r--test/SemaObjCXX/deduction.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaObjCXX/deduction.mm b/test/SemaObjCXX/deduction.mm
index 2c153aa9a6..0d2fc06dc3 100644
--- a/test/SemaObjCXX/deduction.mm
+++ b/test/SemaObjCXX/deduction.mm
@@ -21,4 +21,8 @@ namespace test0 {
void test(NSString *S) {
RetainPtr<NSString*> ptr(S);
}
+
+ void test(id S) {
+ RetainPtr<id> ptr(S);
+ }
}