mv _testcgo => _testrt
This commit is contained in:
13
cl/_testrt/allocstr/in.go
Normal file
13
cl/_testrt/allocstr/in.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/goplus/llgo/internal/runtime/c"
|
||||
)
|
||||
|
||||
func hello() string {
|
||||
return "Hello world\n"
|
||||
}
|
||||
|
||||
func main() {
|
||||
c.Printf(c.AllocaCStr(hello()))
|
||||
}
|
||||
Reference in New Issue
Block a user