aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjCXX/arc.mm
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-06-16 23:24:51 +0000
committerJohn McCall <rjmccall@apple.com>2011-06-16 23:24:51 +0000
commit856d3798af7c2f7251e4a295f3da7a09ce4c62ab (patch)
tree92d24dad87897ae964055277893df0c3ccf04bfb /test/CodeGenObjCXX/arc.mm
parent6970155edde8c79cf22824322470485434b8eb83 (diff)
Be sure to try a final ARC-production even in Objective-C++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjCXX/arc.mm')
-rw-r--r--test/CodeGenObjCXX/arc.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenObjCXX/arc.mm b/test/CodeGenObjCXX/arc.mm
index 5d46a818cf..43098553aa 100644
--- a/test/CodeGenObjCXX/arc.mm
+++ b/test/CodeGenObjCXX/arc.mm
@@ -150,3 +150,13 @@ void test35b(Test35_Helper x0, Test35_Helper *x0p) {
// CHECK: call void @objc_release
// CHECK-NEXT: ret void
}
+
+// rdar://problem/9603128
+// CHECK: define i8* @_Z6test36P11objc_object(
+id test36(id z) {
+ // CHECK: objc_retain
+ // CHECK: objc_retain
+ // CHECK: objc_release
+ // CHECK: objc_autoreleaseReturnValue
+ return z;
+}