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>.
22 lines
343 B
Objective-C
22 lines
343 B
Objective-C
#ifndef SWIFT_TEST_OBJC_CLASSES_H
|
|
#define SWIFT_TEST_OBJC_CLASSES_H
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface FirstClass : NSObject
|
|
@property void *x;
|
|
@end
|
|
|
|
@interface SecondClass : NSObject
|
|
@property void *x;
|
|
@property void *y;
|
|
@end
|
|
|
|
@interface ThirdClass : NSObject
|
|
@property void *x;
|
|
@property void *y;
|
|
@property void *z;
|
|
@end
|
|
|
|
#endif
|