ssa: add builtin append

This commit is contained in:
visualfc
2024-05-15 10:29:06 +08:00
parent cebfe5c95b
commit 5d93565e16
12 changed files with 216 additions and 91 deletions

View File

@@ -40,6 +40,12 @@ func main() {
string_len("hello"[1:])
string_len("hello"[1:2])
string_len("hello"[5:])
s = append(s, 5, 6, 7, 8)
out(len(s))
data := []byte{'a', 'b', 'c'}
data = append(data, "def"...)
out(len(data))
}
func string_len(s string) {