Files
swift-mirror/test/1_stdlib/subString.swift
Jordan Rose e83c117c30 [test] Hack: run stdlib tests first to start long-running tests earlier.
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
2014-10-15 01:30:51 +00:00

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