diff --git a/cl/cltest/cltest.go b/cl/cltest/cltest.go index b58bae30..5d4c2913 100644 --- a/cl/cltest/cltest.go +++ b/cl/cltest/cltest.go @@ -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 {