]> Cypherpunks repositories - gostls13.git/commitdiff
go/types, types2: fix failing error message test for s390x
authorMark Freeman <mark@golang.org>
Mon, 7 Apr 2025 21:28:47 +0000 (17:28 -0400)
committerMark Freeman <mark@golang.org>
Tue, 8 Apr 2025 15:25:47 +0000 (08:25 -0700)
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>
src/internal/types/testdata/fixedbugs/issue70549.go

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