mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Tests: Update tagged string tests in stdlib/BridgeStorage.swift.
The Swift compiler no longer supports any deployment targets that don't have tagged NSStrings. Resolves rdar://121343971
This commit is contained in:
@@ -79,19 +79,7 @@ func expectTagged(_ s: NSString, _ expected: Bool) -> NSString {
|
||||
let mask: UInt = 0
|
||||
#endif
|
||||
|
||||
var osSupportsTaggedStrings: Bool
|
||||
#if os(iOS)
|
||||
// NSTaggedPointerString is enabled starting in iOS 9.0.
|
||||
osSupportsTaggedStrings = isOSAtLeast(9,0)
|
||||
#elseif os(tvOS) || os(watchOS)
|
||||
// NSTaggedPointerString is supported in all versions of TVOS and watchOS.
|
||||
osSupportsTaggedStrings = true
|
||||
#elseif os(OSX)
|
||||
// NSTaggedPointerString is enabled starting in OS X 10.10.
|
||||
osSupportsTaggedStrings = isOSAtLeast(10,10)
|
||||
#endif
|
||||
|
||||
let taggedStringsSupported = osSupportsTaggedStrings && mask != 0
|
||||
let taggedStringsSupported = mask != 0
|
||||
|
||||
let tagged = unsafeBitCast(s, to: UInt.self) & mask != 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user