14 строки
243 Б
Go
14 строки
243 Б
Go
package transform
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"tinygo.org/x/go-llvm"
|
|
)
|
|
|
|
func TestApplyFunctionSections(t *testing.T) {
|
|
t.Parallel()
|
|
testTransform(t, "testdata/globals-function-sections", func(mod llvm.Module) {
|
|
ApplyFunctionSections(mod)
|
|
})
|
|
}
|