blob: 92f6096b7e4db49d2ac372eee2213b21991bb31d [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -emit-llvm -o %t %s
Fariborz Jahanian18191882009-03-31 18:11:23 +00002
NAKAMURA Takumi92b7c392012-09-12 10:45:52 +00003// PR13820
4// REQUIRES: LP64
5
Fariborz Jahanian18191882009-03-31 18:11:23 +00006@interface I
Fariborz Jahanian18191882009-03-31 18:11:23 +00007@property int IP;
8@end
9
10@implementation I
11@synthesize IP;
12- (int) Meth {
13 return IP;
14}
15@end
Fariborz Jahanian99eee362009-04-01 19:37:34 +000016
17// Test for synthesis of ivar for a property
18// declared in continuation class.
19@interface OrganizerViolatorView
20@end
21
22@interface OrganizerViolatorView()
23@property (retain) id bindingInfo;
24@end
25
26@implementation OrganizerViolatorView
27@synthesize bindingInfo;
28@end
Daniel Dunbar45e84232009-10-27 19:21:30 +000029
30// <rdar://problem/7336352> [irgen] crash in synthesized property construction
31
32@interface I0 @end
33@protocol P0 @end
34@interface I1 {
35 I0<P0> *iv0;
36}
37@property (assign, readwrite) id p0;
38@end
39@implementation I1
40@synthesize p0 = iv0;
41@end