]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/test: don't initialize LocalPkg.Path to ""
authorMatthew Dempsky <mdempsky@google.com>
Thu, 12 May 2022 22:50:11 +0000 (15:50 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 16 May 2022 09:30:57 +0000 (09:30 +0000)
Updates #51734.

Change-Id: I80c4e9ae7e17172f26cd32509ce0cb5b4d311819
Reviewed-on: https://go-review.googlesource.com/c/go/+/406315
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/test/abiutils_test.go

index 12b4a0c361360564e9d7bab8a45bbe6045577828..3f8ee3dbe9255500b7bdbabb377938f2bb67d3f2 100644 (file)
@@ -33,8 +33,8 @@ func TestMain(m *testing.M) {
        base.Ctxt.DiagFunc = base.Errorf
        base.Ctxt.DiagFlush = base.FlushErrors
        base.Ctxt.Bso = bufio.NewWriter(os.Stdout)
-       types.LocalPkg = types.NewPkg("", "local")
-       types.LocalPkg.Prefix = `""`
+       types.LocalPkg = types.NewPkg("p", "local")
+       types.LocalPkg.Prefix = "p"
        types.PtrSize = ssagen.Arch.LinkArch.PtrSize
        types.RegSize = ssagen.Arch.LinkArch.RegSize
        typecheck.InitUniverse()