aboutsummaryrefslogtreecommitdiffhomepage
path: root/transform/gc_test.go
blob: 64962f0a0ba5218d02b90a0ee3f3a5453b0499bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package transform

import (
	"testing"

	"tinygo.org/x/go-llvm"
)

func TestAddGlobalsBitmap(t *testing.T) {
	t.Parallel()
	testTransform(t, "testdata/gc-globals", func(mod llvm.Module) {
		AddGlobalsBitmap(mod)
	})
}

func TestMakeGCStackSlots(t *testing.T) {
	t.Parallel()
	testTransform(t, "testdata/gc-stackslots", func(mod llvm.Module) {
		MakeGCStackSlots(mod)
	})
}