blob: a4cae087d306dea42fd4f3fc7c9fe7dde4363f6c [file] [log] [blame]
Fariborz Jahanian97a73cd2010-05-06 15:45:36 +00001// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
2// CHECK: call void @_ZN1SC1ERKS_
3// CHECK: call %class.S* @_ZN1SaSERKS_
Fariborz Jahanianb3ebe942010-05-10 22:57:35 +00004// CHECK: call %class.S* @_ZN6CGRectaSERKS_
Fariborz Jahanian97a73cd2010-05-06 15:45:36 +00005
6class S {
7public:
8 S& operator = (const S&);
9 S (const S&);
10 S ();
11};
12
Fariborz Jahanianb3ebe942010-05-10 22:57:35 +000013struct CGRect {
14 CGRect & operator = (const CGRect &);
15};
16
Fariborz Jahanian97a73cd2010-05-06 15:45:36 +000017@interface I {
18 S position;
Fariborz Jahanianb3ebe942010-05-10 22:57:35 +000019 CGRect bounds;
Fariborz Jahanian97a73cd2010-05-06 15:45:36 +000020}
21@property(assign, nonatomic) S position;
Fariborz Jahanianb3ebe942010-05-10 22:57:35 +000022@property CGRect bounds;
23- (void) initWithOwner;
Fariborz Jahanian97a73cd2010-05-06 15:45:36 +000024@end
25
26@implementation I
27@synthesize position;
Fariborz Jahanianb3ebe942010-05-10 22:57:35 +000028@synthesize bounds;
29- (void)initWithOwner {
30 CGRect labelLayerFrame = self.bounds;
31 labelLayerFrame = self.bounds;
32}
Fariborz Jahanian97a73cd2010-05-06 15:45:36 +000033@end
Fariborz Jahanianbbb52242010-05-07 18:56:13 +000034
35int main() {
36 I *i;
37 S s1;
38 i.position = s1;
39 return 0;
40}
41