Files
clang-p2996/clang/test/CodeGenObjCXX/property-object-reference.mm
Fariborz Jahanian 082a6a14a5 objc++: Accessing explicit property of reference type need
not bind to a temporary. Fixes //rdar://10188258

llvm-svn: 141009
2011-10-03 17:58:21 +00:00

24 lines
518 B
Plaintext

// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -fobjc-fragile-abi -emit-llvm -o - | FileCheck %s
// rdar://10188258
struct Foo {int i;};
@interface ObjCTest { }
@property (nonatomic, readonly) Foo& FooRefProperty;
@end
@implementation ObjCTest
@dynamic FooRefProperty;
-(void) test {
Foo& f = self.FooRefProperty;
}
@end
// CHECK: [[T0:%.*]] = load {{%.*}} [[S0:%.*]]
// CHECK: load i8** @"\01L_OBJC_SELECTOR_REFERENCES_
// CHECK: [[T2:%.*]] = bitcast {{%.*}} [[T0]] to i8*
// CHECK: @objc_msgSend