Skip to content

Commit d02411f

Browse files
authored
Merge pull request #17655 from rudkx/move-slow-test
2 parents 1f81d54 + a406866 commit d02411f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

validation-test/Sema/type_checker_perf/fast/rdar22770433.swift renamed to validation-test/Sema/type_checker_perf/slow/rdar22770433.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
func test(n: Int) -> Int {
55
return n == 0 ? 0 : (0..<n).reduce(0) {
6-
($0 > 0 && $1 % 2 == 0) ? (($0 + $1) / ($1 - $0)) : $0
6+
// expected-error@-1 {{reasonable time}}
7+
($0 > 0 && $1 % 2 == 0) ? ((($0 + $1) - ($0 + $1)) / ($1 - $0)) + (($0 + $1) / ($1 - $0)) : $0
78
}
89
}

0 commit comments

Comments
 (0)