TestCvtCType

This commit is contained in:
xushiwei
2024-05-03 19:02:17 +08:00
parent 330cb22351
commit 91d012d33d
4 changed files with 67 additions and 1 deletions

19
cl/_testrt/cvar/in.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import _ "unsafe"
//go:linkname barX _bar_x
var barX struct {
Arr [16]int8
Callbacks [2]func()
}
//go:linkname barY _bar_y
var barY struct {
Arr [16]int8
}
func main() {
_ = barX
_ = barY
}