2019-01-22 22:35:01 -08:00
|
|
|
package ext
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
"testing/quick"
|
|
|
|
|
|
2026-03-06 20:14:02 +00:00
|
|
|
"sources.truenas.cloud/code/avo/examples/ext/ext"
|
2019-01-22 22:35:01 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//go:generate go run asm.go -out ext.s
|
|
|
|
|
|
|
|
|
|
func TestFunc(t *testing.T) {
|
|
|
|
|
expect := func(e ext.Struct) byte { return e.B }
|
|
|
|
|
if err := quick.CheckEqual(StructFieldB, expect, nil); err != nil {
|
|
|
|
|
t.Fatal(err)
|
|
|
|
|
}
|
|
|
|
|
}
|