Files
Slava Pestov 1c7a50dcc5 Reflection: Fix class layout, again
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>.
2016-11-16 19:31:18 -08:00

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