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

@@ -4,20 +4,20 @@ import (
_ "unsafe"
"github.com/goplus/llgo/c"
_ "github.com/goplus/llgo/compiler/cl/internal/linktarget"
_ "github.com/goplus/llgo/compiler/cl/_testrt/linkname/linktarget"
)
//go:linkname print github.com/goplus/llgo/compiler/cl/internal/linktarget.F
//go:linkname print github.com/goplus/llgo/compiler/cl/_testrt/linkname/linktarget.F
func print(a, b, c, d *c.Char)
type m struct {
s string
}
//go:linkname setInfo github.com/goplus/llgo/compiler/cl/internal/linktarget.(*m).setInfo
//go:linkname setInfo github.com/goplus/llgo/compiler/cl/_testrt/linkname/linktarget.(*m).setInfo
func setInfo(*m, string)
//go:linkname info github.com/goplus/llgo/compiler/cl/internal/linktarget.m.info
//go:linkname info github.com/goplus/llgo/compiler/cl/_testrt/linkname/linktarget.m.info
func info(m) string
func main() {