cmd/go: add a test that reproduces the internal error in #45952
cmd/go: add a test that reproduces the internal error in #45952

For #45952

Change-Id: I90e895e2fd10bccd947f9ee5133f942fea218a07
Reviewed-on: https://go-review.googlesource.com/c/go/+/316753
Trust: Bryan C. Mills <1c8aad60184261ccede67f5c63a0d2a3bf3c9ff4@google.com>
Run-TryBot: Bryan C. Mills <1c8aad60184261ccede67f5c63a0d2a3bf3c9ff4@google.com>
TryBot-Result: Go Bot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Jay Conrod <f3fadaedc813344da5ec13b41e26596889cc5baa@google.com>

CAFxX/go,nawawi/go,CAFxX/go,golang/go,cloudflare/go,golang/go,golang/go,nawawi/go,CAFxX/go,CAFxX/go,cloudflare/go,cloudflare/go,CAFxX/go,golang/go,cloudflare/go,nawawi/go,nawawi/go,cloudflare/go,nawawi/go,nawawi/go,CAFxX/go,cloudflare/go,CAFxX/go,golang/go,golang/go,golang/go,golang/go,nawawi/go,CAFxX/go,cloudflare/go,nawawi/go,cloudflare/go