c.GoDeferData; llgo/ssa: rm excepKey

This commit is contained in:
xushiwei
2024-06-12 23:17:10 +08:00
parent 2c4f6063a6
commit 42a5c6a19f
4 changed files with 3 additions and 7 deletions

View File

@@ -1,12 +1,13 @@
package main
import "github.com/goplus/llgo/c"
import "github.com/goplus/llgo/internal/runtime/c"
func f(s string) bool {
return len(s) > 2
}
func main() {
c.GoDeferData()
if s := "hello"; f(s) {
defer c.Printf(c.Str("%s\n"), c.AllocaCStr(s))
} else {