1 // RUN: %clang_cc1 -triple armv7-apple-darwin10 -emit-llvm -fobjc-nonfragile-abi -fblocks -fobjc-arc -o - %s | FileCheck %s 2 3 id test0(void) { 4 extern id test0_helper(void); 5 // CHECK: [[T0:%.*]] = call arm_aapcscc i8* @test0_helper() 6 // CHECK-NEXT: ret i8* [[T0]] 7 return test0_helper(); 8 } 9 10 void test1(void) { 11 extern id test1_helper(void); 12 // CHECK: [[T0:%.*]] = call arm_aapcscc i8* @test1_helper() 13 // CHECK-NEXT: call void asm sideeffect "mov\09r7, r7 14 // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]]) 15 // CHECK-NEXT: store i8* [[T1]], 16 // CHECK-NEXT: load 17 // CHECK-NEXT: call void @objc_release 18 // CHECK-NEXT: ret void 19 id x = test1_helper(); 20 } 21