From 903cc181c438cee2bfb7b3fab304328981a99654 Mon Sep 17 00:00:00 2001 From: visualfc Date: Mon, 8 Jul 2024 15:21:03 +0800 Subject: [PATCH] cl/cltest: program init types.sizes --- cl/cltest/cltest.go | 2 ++ 1 file changed, 2 insertions(+) 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 {