mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
21 lines
285 B
Swift
21 lines
285 B
Swift
public func getVersion() -> Int {
|
|
#if BEFORE
|
|
return 0
|
|
#else
|
|
return 1
|
|
#endif
|
|
}
|
|
|
|
#if AFTER
|
|
@_weakLinked public func topLevelFunction(_ x: Int) {}
|
|
|
|
@_weakLinked public var storedGlobal: Int = 0
|
|
|
|
@_weakLinked public var computedGlobal: Int {
|
|
get {
|
|
return 0
|
|
}
|
|
set {}
|
|
}
|
|
#endif
|