cl: support go:linkname

This commit is contained in:
xushiwei
2024-04-22 15:09:08 +08:00
parent 2142e14b6d
commit 5343a55395
11 changed files with 114 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ package main
import _ "unsafe"
//go:linkname printf _printf
//go:linkname printf printf
func printf(format *int8, __llgo_va_list ...any)
var hello = [...]int8{'H', 'e', 'l', 'l', 'o', '\n', 0}