llvm-project/clang/test/CodeGenObjCXX/property-objects.mm

29 lines
415 B
Plaintext
Raw Normal View History

// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
// CHECK: call void @_ZN1SC1ERKS_
// CHECK: call %class.S* @_ZN1SaSERKS_
class S {
public:
S& operator = (const S&);
S (const S&);
S ();
};
@interface I {
S position;
}
@property(assign, nonatomic) S position;
@end
@implementation I
@synthesize position;
@end
int main() {
I *i;
S s1;
i.position = s1;
return 0;
}