1 ; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
3 ; CHECK-LABEL: define void @test0() {
4 ; CHECK: %[[CALL:.*]] = notail call ptr @foo() [ "clang.arc.attachedcall"(ptr @llvm.objc.retainAutoreleasedReturnValue) ]
8 %call1 = call ptr @foo() [ "clang.arc.attachedcall"(ptr @llvm.objc.retainAutoreleasedReturnValue) ]
12 ; CHECK-LABEL: define void @test1() {
13 ; CHECK: %[[CALL:.*]] = notail call ptr @foo() [ "clang.arc.attachedcall"(ptr @llvm.objc.unsafeClaimAutoreleasedReturnValue) ]
14 ; CHECK-NEXT: ret void
16 define void @test1() {
17 %call1 = call ptr @foo() [ "clang.arc.attachedcall"(ptr @llvm.objc.unsafeClaimAutoreleasedReturnValue) ]
22 declare ptr @llvm.objc.retainAutoreleasedReturnValue(ptr)
23 declare ptr @llvm.objc.unsafeClaimAutoreleasedReturnValue(ptr)