blob: 5dd90ab618bbd239f3aa405e5b2ab891153c9ef6 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fobjc-nonfragile-abi -emit-llvm -o %t %s
Fariborz Jahanian18191882009-03-31 18:11:23 +00002
3@interface I
Fariborz Jahanian18191882009-03-31 18:11:23 +00004@property int IP;
5@end
6
7@implementation I
8@synthesize IP;
9- (int) Meth {
10 return IP;
11}
12@end
Fariborz Jahanian99eee362009-04-01 19:37:34 +000013
14// Test for synthesis of ivar for a property
15// declared in continuation class.
16@interface OrganizerViolatorView
17@end
18
19@interface OrganizerViolatorView()
20@property (retain) id bindingInfo;
21@end
22
23@implementation OrganizerViolatorView
24@synthesize bindingInfo;
25@end
Daniel Dunbar45e84232009-10-27 19:21:30 +000026
27// <rdar://problem/7336352> [irgen] crash in synthesized property construction
28
29@interface I0 @end
30@protocol P0 @end
31@interface I1 {
32 I0<P0> *iv0;
33}
34@property (assign, readwrite) id p0;
35@end
36@implementation I1
37@synthesize p0 = iv0;
38@end