go/types, types2: fix failing error message test for s390x

Fixes #73206.

Change-Id: If27ce5fe7aa71415b6e2d525c78b1f04b88a308b
Reviewed-on: https://go-review.googlesource.com/c/go/+/663635
TryBot-Result: Gopher Robot <gobot@golang.org>
TryBot-Bypass: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Mark Freeman <mark@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Mark Freeman 2025-04-07 17:28:47 -04:00
parent 3a4f077710
commit 559b5d814f

View File

@ -7,9 +7,9 @@ package p
import "math" import "math"
var ( var (
_ = math.Sin _ = math.Sqrt
_ = math.SIn /* ERROR "undefined: math.SIn (but have Sin)" */ _ = math.SQrt /* ERROR "undefined: math.SQrt (but have Sqrt)" */
_ = math.sin /* ERROR "name sin not exported by package math" */ _ = math.sqrt /* ERROR "name sqrt not exported by package math" */
_ = math.Foo /* ERROR "undefined: math.Foo" */ _ = math.Foo /* ERROR "undefined: math.Foo" */
_ = math.foo /* ERROR "undefined: math.foo" */ _ = math.foo /* ERROR "undefined: math.foo" */
) )