tinygo/transform/wasm-abi_test.go
Ayke van Laethem 4d79d473c4 compiler: move wasm ABI workaround to transform package
By considering this as a regular transformation, it can be easily
tested.
2020-01-28 19:29:09 +01:00

18 строки
314 Б
Go

package transform
import (
"testing"
"tinygo.org/x/go-llvm"
)
func TestWasmABI(t *testing.T) {
t.Parallel()
testTransform(t, "testdata/wasm-abi", func(mod llvm.Module) {
// Run ABI change pass.
err := ExternalInt64AsPtr(mod)
if err != nil {
t.Errorf("failed to change wasm ABI: %v", err)
}
})
}