blob: b87ce2303b5e2666201e002eeca25082daa3c34a [file] [log] [blame]
Fariborz Jahanianc6ac3222011-10-03 17:58:21 +00001// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -fobjc-fragile-abi -emit-llvm -o - | FileCheck %s
2// rdar://10188258
3
4struct Foo {int i;};
5
6@interface ObjCTest { }
7@property (nonatomic, readonly) Foo& FooRefProperty;
8@end
9
10
11@implementation ObjCTest
12@dynamic FooRefProperty;
13
14-(void) test {
15 Foo& f = self.FooRefProperty;
16}
17@end
18
19// CHECK: [[T0:%.*]] = load {{%.*}} [[S0:%.*]]
20// CHECK: load i8** @"\01L_OBJC_SELECTOR_REFERENCES_
21// CHECK: [[T2:%.*]] = bitcast {{%.*}} [[T0]] to i8*
22// CHECK: @objc_msgSend
23