mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This decreases total testing time by over a minute on my old Mac Pro. It probably has much less effect on systems with fewer cores, but shouldn't be any worse there. Swift SVN r22745
16 lines
310 B
Swift
16 lines
310 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
|
|
func test(s: String)
|
|
{
|
|
println(s)
|
|
var s2 = s[advance(s.startIndex, 2)..<advance(s.startIndex, 4)]
|
|
println(s2)
|
|
var s3 = s2[s2.startIndex..<s2.startIndex]
|
|
var s4 = s3[s2.startIndex..<s2.startIndex]
|
|
}
|
|
|
|
test("some text")
|
|
|
|
// CHECK: some text
|
|
// CHECK: me
|