| 1 |
// RUN: %clang_cc1 -emit-llvm -o %t %s |
| 2 |
|
| 3 |
// PR13820 |
| 4 |
// REQUIRES: LP64 |
| 5 |
|
| 6 |
@interface I |
| 7 |
@property int IP; |
| 8 |
@end |
| 9 |
|
| 10 |
@implementation I |
| 11 |
@synthesize IP; |
| 12 |
- (int) Meth { |
| 13 |
return IP; |
| 14 |
} |
| 15 |
@end |
| 16 |
|
| 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 |
| 29 |
|
| 30 |
// [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 |