From 14056d0d004489592ee0173e685ff86f241cfb4f Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Thu, 22 Apr 2021 15:38:33 -0700 Subject: cmd/compile/internal/types2: add unsafe.Add and unsafe.Slice This is a port of CL 312212, CL 312591 (except check_test.go), and CL 312790 to types2. Updates #19367. Updates #40481. Change-Id: I58ba0b0dad157baba3f82c909d5eb1268b931be4 Reviewed-on: https://go-review.googlesource.com/c/go/+/312511 Trust: Matthew Dempsky Trust: Robert Griesemer Run-TryBot: Matthew Dempsky TryBot-Result: Go Bot Reviewed-by: Robert Griesemer --- test/makechan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/makechan.go') diff --git a/test/makechan.go b/test/makechan.go index 30a57456b3..9fabd1701f 100644 --- a/test/makechan.go +++ b/test/makechan.go @@ -16,7 +16,7 @@ var sink T func main() { sink = make(T, -1) // ERROR "negative buffer argument in make.*|must not be negative" - sink = make(T, uint64(1<<63)) // ERROR "buffer argument too large in make.*|out of bounds" + sink = make(T, uint64(1<<63)) // ERROR "buffer argument too large in make.*|overflows int" sink = make(T, 0.5) // ERROR "constant 0.5 truncated to integer|truncated to int" sink = make(T, 1.0) -- cgit v1.2.1