mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-11 15:09:32 +00:00
23 lines
448 B
Go
23 lines
448 B
Go
package transform_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/tinygo-org/tinygo/transform"
|
|
"tinygo.org/x/go-llvm"
|
|
)
|
|
|
|
func TestMakeGCStackSlots(t *testing.T) {
|
|
t.Parallel()
|
|
testTransform(t, "testdata/gc-stackslots", func(mod llvm.Module) {
|
|
transform.MakeGCStackSlots(mod)
|
|
})
|
|
}
|
|
|
|
func TestMakeGCGlobalRootsAVR(t *testing.T) {
|
|
t.Parallel()
|
|
testTransform(t, "testdata/gc-globals-avr", func(mod llvm.Module) {
|
|
transform.MakeGCStackSlots(mod)
|
|
})
|
|
}
|