Files
swift-mirror/test/Backtracing/Inputs/Overflow.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

31 lines
261 B
Swift

var x: UInt = 0
func level1() {
level2()
}
func level2() {
level3()
}
func level3() {
level4()
}
func level4() {
level5()
}
func level5() {
print("About to overflow")
x -= 1
}
@main
struct Overflow {
static func main() {
level1()
}
}