Files
swift-mirror/test/Interpreter/Inputs/FakeUnavailableObjCFramework.m
David Farler 8ca30ff2d7 Ask SILFunction link entities' clang nodes for weakness when applicable
When importing C functions with availability attributes, we don't
properly use that information to decide whether a symbol should be
weak_extern, causing load failures in dylibs that reference these
symbols when deployed to an older OS.

This is a very targeted fix and we need a better architecture for
deciding this.

rdar://problem/26359452
2016-06-01 12:52:04 -07:00

11 lines
173 B
Objective-C

@import FakeUnavailableObjCFramework;
int UnavailableObjCGlobalVariable = 20300;
@implementation UnavailableObjCClass
- (void)someMethod { }
@end
void someFunction() {}