diff options
author | Ayke van Laethem <[email protected]> | 2021-04-22 12:44:22 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-04-22 19:53:42 +0200 |
commit | 404b65941a373b5b22b454a4b7d698cf2b98f8bd (patch) | |
tree | 8d2ab78847165b1425fe5862d9e34f9af22fddb4 /transform/gc_test.go | |
parent | 25f3adb47ec715234599bb0d892ad79277400a5b (diff) | |
download | tinygo-404b65941a373b5b22b454a4b7d698cf2b98f8bd.tar.gz tinygo-404b65941a373b5b22b454a4b7d698cf2b98f8bd.zip |
transform: move tests to transform_test package
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.
Diffstat (limited to 'transform/gc_test.go')
-rw-r--r-- | transform/gc_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/transform/gc_test.go b/transform/gc_test.go index 64962f0a0..70412d6b6 100644 --- a/transform/gc_test.go +++ b/transform/gc_test.go @@ -1,21 +1,22 @@ -package transform +package transform_test import ( "testing" + "github.com/tinygo-org/tinygo/transform" "tinygo.org/x/go-llvm" ) func TestAddGlobalsBitmap(t *testing.T) { t.Parallel() testTransform(t, "testdata/gc-globals", func(mod llvm.Module) { - AddGlobalsBitmap(mod) + transform.AddGlobalsBitmap(mod) }) } func TestMakeGCStackSlots(t *testing.T) { t.Parallel() testTransform(t, "testdata/gc-stackslots", func(mod llvm.Module) { - MakeGCStackSlots(mod) + transform.MakeGCStackSlots(mod) }) } |