aboutsummaryrefslogtreecommitdiffhomepage
path: root/transform/rtcalls_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'transform/rtcalls_test.go')
-rw-r--r--transform/rtcalls_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/transform/rtcalls_test.go b/transform/rtcalls_test.go
index 819dc5acb..9073b0ea5 100644
--- a/transform/rtcalls_test.go
+++ b/transform/rtcalls_test.go
@@ -1,8 +1,9 @@
-package transform
+package transform_test
import (
"testing"
+ "github.com/tinygo-org/tinygo/transform"
"tinygo.org/x/go-llvm"
)
@@ -10,7 +11,7 @@ func TestOptimizeStringToBytes(t *testing.T) {
t.Parallel()
testTransform(t, "testdata/stringtobytes", func(mod llvm.Module) {
// Run optimization pass.
- OptimizeStringToBytes(mod)
+ transform.OptimizeStringToBytes(mod)
})
}
@@ -18,7 +19,7 @@ func TestOptimizeStringEqual(t *testing.T) {
t.Parallel()
testTransform(t, "testdata/stringequal", func(mod llvm.Module) {
// Run optimization pass.
- OptimizeStringEqual(mod)
+ transform.OptimizeStringEqual(mod)
})
}
@@ -26,6 +27,6 @@ func TestOptimizeReflectImplements(t *testing.T) {
t.Parallel()
testTransform(t, "testdata/reflect-implements", func(mod llvm.Module) {
// Run optimization pass.
- OptimizeReflectImplements(mod)
+ transform.OptimizeReflectImplements(mod)
})
}