Files
llgo/_demo/c/asmfullcall/asmfullcall.go

22 lines
355 B
Go
Raw Normal View History

2025-08-21 11:04:03 +08:00
package main
import (
"fmt"
)
//llgo:link asmFull llgo.asm
func asmFull(instruction string, regs map[string]any) uintptr { return 0 }
var testVar = 0
func main() {
verify()
}
func check(expected, actual int) {
if expected != actual {
panic(fmt.Sprintf("Expected: %d, Got: %d\n", expected, actual))
}
fmt.Println("asm check passed:", actual)
}