mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
1c7a50dcc5
There were a few problems here with subclasses of Objective-C classes. Use the InstanceStart field from rodata to correctly lay out instance variables, and verify the results match with dynamic and static layout. Better fix for <rdar://problem/27932061>.
17 lines
247 B
Objective-C
17 lines
247 B
Objective-C
#import "ObjCClasses.h"
|
|
|
|
@implementation FirstClass : NSObject
|
|
@synthesize x;
|
|
@end
|
|
|
|
@implementation SecondClass : NSObject
|
|
@synthesize x;
|
|
@synthesize y;
|
|
@end
|
|
|
|
@implementation ThirdClass : NSObject
|
|
@synthesize x;
|
|
@synthesize y;
|
|
@synthesize z;
|
|
@end
|