Files
swift-mirror/test/SILGen/Inputs/usr/include/AppKit.h
Slava Pestov 249242b08d SILGen: Always open-code materializeForSet
This improves MaterializeForSetEmitter to support emission
of static materializeForSet thunks, as well as witnesses.

This is now done by passing in a nullptr as the conformance
and requirement parameters, and adding some conditional code.

Along the way, I fixed a few limitations of the old code,
namely weak/unowned and static stored properties weren't
completely plumbed through. There was also a memory leak in
addressed materializeForSet, the valueBuffer was never freed.

Finally, remove the materializeForSet synthesis in Sema since
it is no longer needed, which fixes at least one known crash
case.
2016-01-11 19:53:16 -08:00

17 lines
231 B
Objective-C

@import Foundation;
@protocol NSApplicationDelegate
@end
struct NSPoint {
float x, y;
};
@interface NSReferencePoint : NSObject
@property float x;
@property float y;
@end
int NSApplicationMain(int argc, const char *argv[]);