runtime.Rethrow fix; llgo/ssa: IndirectJump fix

This commit is contained in:
xushiwei
2024-06-12 20:53:30 +08:00
parent d500902eff
commit 42a5c60af6
13 changed files with 555 additions and 237 deletions

23
cl/_testgo/defer3/in.go Normal file
View File

@@ -0,0 +1,23 @@
package main
func f(s string) bool {
return len(s) > 2
}
func fail() {
defer println("bye")
panic("panic message")
}
func main() {
defer func() {
println("hi")
}()
if s := "hello"; f(s) {
defer println(s)
} else {
defer println("world")
return
}
fail()
}