cl/cltest: program init types.sizes

This commit is contained in:
visualfc
2024-07-08 15:21:03 +08:00
parent 3875bc34bd
commit 903cc181c4

View File

@@ -27,6 +27,7 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"strings"
"testing"
@@ -145,6 +146,7 @@ func TestCompileEx(t *testing.T, src any, fname, expected string) {
}
foo.WriteTo(os.Stderr)
prog := ssatest.NewProgramEx(t, nil, imp)
prog.TypeSizes(types.SizesFor("gc", runtime.GOARCH))
ret, err := cl.NewPackage(prog, foo, files)
if err != nil {