Commit 583975b9 authored by Bryan C. Mills's avatar Bryan C. Mills

cmd/link: fix TestUnresolved in module mode

Updates #30228

Change-Id: I9f0e7e59922bd56b17889f72124b7d14b2433218
Reviewed-on: https://go-review.googlesource.com/c/162833
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarJay Conrod <jayconrod@google.com>
parent 34291f5f
...@@ -139,6 +139,7 @@ func TestUnresolved(t *testing.T) { ...@@ -139,6 +139,7 @@ func TestUnresolved(t *testing.T) {
// linker would find an undefined reference to "zero" created // linker would find an undefined reference to "zero" created
// by the runtime package. // by the runtime package.
write("go.mod", "module testunresolved\n")
write("main.go", `package main write("main.go", `package main
func main() { func main() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment