Skip to content

Commit 7449365

Browse files
committed
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
1 parent 0d3f6a9 commit 7449365

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

test/stdlib/BridgeStorage.swift

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,7 @@ func expectTagged(_ s: NSString, _ expected: Bool) -> NSString {
7979
let mask: UInt = 0
8080
#endif
8181

82-
var osSupportsTaggedStrings: Bool
83-
#if os(iOS)
84-
// NSTaggedPointerString is enabled starting in iOS 9.0.
85-
osSupportsTaggedStrings = isOSAtLeast(9,0)
86-
#elseif os(tvOS) || os(watchOS)
87-
// NSTaggedPointerString is supported in all versions of TVOS and watchOS.
88-
osSupportsTaggedStrings = true
89-
#elseif os(OSX)
90-
// NSTaggedPointerString is enabled starting in OS X 10.10.
91-
osSupportsTaggedStrings = isOSAtLeast(10,10)
92-
#endif
93-
94-
let taggedStringsSupported = osSupportsTaggedStrings && mask != 0
82+
let taggedStringsSupported = mask != 0
9583

9684
let tagged = unsafeBitCast(s, to: UInt.self) & mask != 0
9785

0 commit comments

Comments
 (0)