1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s | FileCheck %s
4 - (char* &) interior __attribute__((objc_returns_inner_pointer));
5 - (int&)reference_to_interior_int __attribute__((objc_returns_inner_pointer));
10 char *c = [(ptr) interior];
12 int i = [(ptr) reference_to_interior_int];
15 // CHECK: [[T0:%.*]] = load {{.*}} {{%.*}}, align 8
16 // call ptr @llvm.objc.retainAutorelease(ptr [[T0]]) nounwind
17 // CHECK: [[T2:%.*]] = load {{.*}} {{%.*}}, align 8
18 // call ptr @llvm.objc.retainAutorelease(ptr [[T2]]) nounwind