cl: clean test
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package main
|
||||
|
||||
import "github.com/goplus/llgo/compiler/cl/internal/libc"
|
||||
import "github.com/goplus/llgo/compiler/cl/_testrt/hello/libc"
|
||||
|
||||
var format = [...]int8{'H', 'e', 'l', 'l', 'o', ' ', '%', 'd', '\n', 0}
|
||||
|
||||
|
||||
14
compiler/cl/_testrt/hello/libc/libc.go
Normal file
14
compiler/cl/_testrt/hello/libc/libc.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package libc
|
||||
|
||||
import "C"
|
||||
import _ "unsafe"
|
||||
|
||||
const (
|
||||
LLGoPackage = "decl"
|
||||
)
|
||||
|
||||
//go:linkname Printf C.printf
|
||||
func Printf(format *int8, __llgo_va_list ...any)
|
||||
|
||||
//go:linkname Strlen C.strlen
|
||||
func Strlen(str *int8) C.int
|
||||
Reference in New Issue
Block a user