ssa: fix binop string cat ret type

This commit is contained in:
visualfc
2024-05-14 15:58:33 +08:00
parent 238f9593f9
commit 924715fe34
3 changed files with 24 additions and 9 deletions

View File

@@ -11,6 +11,10 @@ func concat(args ...string) (ret string) {
return
}
func info(s string) string {
return "" + s + "..."
}
func main() {
result := concat("Hello", " ", "World")
c.Fprintf(c.Stderr, c.Str("Hi, %s\n"), c.AllocaCStr(result))