Skip to content

Commit dbde6aa

Browse files
committed
[Test] Add availability to the ResilientNSObject test in objc_getClass.swift
This is a new test in Swift 5.1 that is not expected to pass when running with the Swift 5.0 runtime library. rdar://problem/50175915
1 parent 6dd4d06 commit dbde6aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/Interpreter/SDK/objc_getClass.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ testSuite.test("ResilientNSObject")
225225
reason: "objc_getClass hook not present"))
226226
.requireOwnProcess()
227227
.code {
228+
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else { return }
228229
requireClass(named: "_TtC4main27ResilientSubclassOfNSObject",
229230
demangledName: "main.ResilientSubclassOfNSObject")
230231
requireClass(named: "_TtC4main34ResilientSubclassOfGenericNSObject",

0 commit comments

Comments
 (0)