mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
404b65941a
This allows for adding more advanced tests, for example tests that use the compiler package so that test sources can be written in Go instead of LLVM IR.
20 lines
371 B
Go
20 lines
371 B
Go
package transform_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/tinygo-org/tinygo/transform"
|
|
"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 := transform.ExternalInt64AsPtr(mod)
|
|
if err != nil {
|
|
t.Errorf("failed to change wasm ABI: %v", err)
|
|
}
|
|
})
|
|
}
|