internal/cabi: TestBuild TestABI

This commit is contained in:
visualfc
2025-08-12 12:04:32 +08:00
parent d2d999d369
commit 5fe7ee9b6a
134 changed files with 34454 additions and 6 deletions

View File

@@ -0,0 +1,25 @@
package main
import (
_ "unsafe"
)
const (
LLGoFiles = "../wrap/demo.c"
)
type st1 struct {
x int32
y int32
}
//go:linkname cfn1 C.fn1
func cfn1(v st1) st1
func fn1(v st1) st1 {
return v
}
func main() {
cfn1(st1{})
}