cl: clean test

This commit is contained in:
Li Jie
2025-01-09 00:47:45 +08:00
parent 4f9c341103
commit 3d2c014801
19 changed files with 256 additions and 105 deletions

View File

@@ -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}

View 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