github.com/goplus/llgo@v0.8.3/cl/_testrt/alloca/in.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/goplus/llgo/internal/runtime/c"
     5  )
     6  
     7  func main() {
     8  	s := c.Str("Hi\n")
     9  	s2 := c.Alloca(4)
    10  	c.Memcpy(s2, c.Pointer(s), 4)
    11  	c.Printf(c.Str("%s"), s2)
    12  }