2010-05-06 23:45:36 +08:00
|
|
|
// 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
|
2010-05-08 02:56:13 +08:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
I *i;
|
|
|
|
S s1;
|
|
|
|
i.position = s1;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|