Skip to content

Commit 68e852e

Browse files
authored
Merge pull request #71134 from tshortli/bridge-storage-test
Tests: Update tagged string tests in stdlib/BridgeStorage.swift
2 parents c3c7465 + 7449365 commit 68e852e

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)