mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
11 lines
173 B
Objective-C
11 lines
173 B
Objective-C
@import FakeUnavailableObjCFramework;
|
|
|
|
int UnavailableObjCGlobalVariable = 20300;
|
|
|
|
@implementation UnavailableObjCClass
|
|
- (void)someMethod { }
|
|
@end
|
|
|
|
void someFunction() {}
|
|
|