Files
llgo/cl/_testrt/any/in.go

14 lines
179 B
Go
Raw Normal View History

2024-04-27 17:39:25 +08:00
package main
2024-04-29 20:51:27 +08:00
import (
"github.com/goplus/llgo/internal/runtime/c"
)
2024-04-27 17:39:25 +08:00
func incVal(a any) int {
return a.(int) + 1
}
func main() {
2024-04-30 08:23:55 +08:00
c.Printf(c.Str("Hello %d\n"), incVal(100))
2024-04-27 17:39:25 +08:00
}