Files
swift-mirror/test/Backtracing/Inputs/StackOverflow.swift
Alastair Houghton 6d930d39ec [Backtracing] Make tests work, plus various fixes.
Made the tests run, then fixed various issues with them.

rdar://101623384
2026-02-03 18:23:29 +00:00

14 lines
174 B
Swift

func recurse(_ level: Int) {
if level % 100000 == 0 {
print(level)
}
recurse(level + 1)
}
@main
struct StackOverflow {
static func main() {
recurse(1)
}
}