[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenObjCXX / arc-returns-inner-reference-ptr.mm
blob46fae7fc1df3471a3f55b2db45f968dec94e9bae
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s | FileCheck %s
3 @interface Test58
4 - (char* &) interior __attribute__((objc_returns_inner_pointer));
5 - (int&)reference_to_interior_int __attribute__((objc_returns_inner_pointer));
6 @end
8 void foo() {
9    Test58 *ptr;
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