Skip to content

Commit 6746911

Browse files
committed
[Test] Add availability to the GenericMangled 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 528fe42 commit 6746911

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
@@ -179,6 +179,7 @@ testSuite.test("GenericMangled")
179179
reason: "objc_getClass hook not present"))
180180
.requireOwnProcess()
181181
.code {
182+
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else { return }
182183
requireClass(named: "_TtC4main24ConstrainedSwiftSubclass",
183184
demangledName: "main.ConstrainedSwiftSubclass")
184185
requireClass(named: "_TtC4main26ConstrainedSwiftSuperclass",

0 commit comments

Comments
 (0)