1 // RUN: %clang_cc1 -no-opaque-pointers %s -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - | FileCheck %s
8 @interface ObjCTest { }
9 @property (nonatomic, readonly) Foo& FooRefProperty;
10 @property (nonatomic) Foo FooProperty;
11 - (Foo &) FooProperty;
12 - (void)setFooProperty : (Foo &) arg;
16 @implementation ObjCTest
17 @dynamic FooRefProperty;
20 Foo& f = self.FooRefProperty;
21 Foo& f1 = self.FooProperty;
23 - (Foo &) FooProperty { return gFoo; }
24 - (void)setFooProperty : (Foo &) arg { };
27 // CHECK: [[T0:%.*]] = load {{%.*}} [[S0:%.*]]
28 // CHECK: [[T2:%.*]] = bitcast {{%.*}} [[T0]] to i8*
29 // CHECK: load i8*, i8** @OBJC_SELECTOR_REFERENCES_
30 // CHECK: @objc_msgSend
31 // CHECK: [[R0:%.*]] = load {{%.*}} [[U0:%.*]]
32 // CHECK: [[R2:%.*]] = bitcast {{%.*}} [[R0]] to i8*
33 // CHECK: load i8*, i8** @OBJC_SELECTOR_REFERENCES_
34 // CHECK: @objc_msgSend