mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
|