Skip to content

Commit fb74ba2

Browse files
authored
Merge pull request #32912 from lorentey/defaultindices-availability
2 parents 15aec01 + 8961b4e commit fb74ba2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/stdlib/DefaultIndices.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %target-run-stdlib-swift
22
// REQUIRES: executable_test
3-
// rdar://problem/65605593
4-
// UNSUPPORTED: use_os_stdlib
53

64
import StdlibUnittest
75

@@ -25,6 +23,10 @@ extension Collection {
2523
}
2624

2725
suite.test("Bidirectional dispatch") {
26+
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else {
27+
// This used to cause a runtime trap until https://github.com/apple/swift/pull/32019
28+
return
29+
}
2830
var r = (0...10).indices
2931
expectType(DefaultIndices<ClosedRange<Int>>.self, &r)
3032

0 commit comments

Comments
 (0)