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