mv _testcgo => _testrt

This commit is contained in:
xushiwei
2024-04-30 23:18:18 +08:00
parent f7a54e3377
commit d3fddfb634
24 changed files with 9 additions and 5 deletions

14
cl/_testrt/alloca/in.go Normal file
View File

@@ -0,0 +1,14 @@
package main
import (
"unsafe"
"github.com/goplus/llgo/internal/runtime/c"
)
func main() {
s := c.Str("Hi\n")
s2 := c.Alloca(4)
c.Memcpy(s2, unsafe.Pointer(s), 4)
c.Printf(c.Str("%s"), s2)
}