public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8268] gcc/testsuite/go.test: update for lowering pass move
@ 2024-01-19  4:49 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2024-01-19  4:49 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7e949ffaafb415150047127f529377502097d897

commit r14-8268-g7e949ffaafb415150047127f529377502097d897
Author: Ian Lance Taylor <iant@golang.org>
Date:   Thu Jan 18 20:46:30 2024 -0800

    gcc/testsuite/go.test: update for lowering pass move
    
    The change to move the  lowering pass after the check types pass
    changed some error messages.  Update the testsuite accordingly.
    
    Fixes PR go/113447

Diff:
---
 gcc/testsuite/go.test/test/fixedbugs/issue20185.go | 2 +-
 gcc/testsuite/go.test/test/fixedbugs/issue33386.go | 2 +-
 gcc/testsuite/go.test/test/fixedbugs/issue4085a.go | 4 ++--
 gcc/testsuite/go.test/test/shift1.go               | 8 ++++----
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/gcc/testsuite/go.test/test/fixedbugs/issue20185.go b/gcc/testsuite/go.test/test/fixedbugs/issue20185.go
index 9065868d7f2..24d74f09126 100644
--- a/gcc/testsuite/go.test/test/fixedbugs/issue20185.go
+++ b/gcc/testsuite/go.test/test/fixedbugs/issue20185.go
@@ -10,7 +10,7 @@
 package p
 
 func F() {
-	switch t := nil.(type) { // ERROR "cannot type switch on non-interface value"
+	switch t := nil.(type) { // ERROR "cannot type switch on non-interface value|defined to nil type"
 	default:
 		_ = t
 	}
diff --git a/gcc/testsuite/go.test/test/fixedbugs/issue33386.go b/gcc/testsuite/go.test/test/fixedbugs/issue33386.go
index 7b2f565285e..c5073910a4c 100644
--- a/gcc/testsuite/go.test/test/fixedbugs/issue33386.go
+++ b/gcc/testsuite/go.test/test/fixedbugs/issue33386.go
@@ -18,7 +18,7 @@ func _() {
 
 func _() {
 	defer func() { // no error here about deferred function
-		1 +    // GCCGO_ERROR "value computed is not used"
+		1 +
 	}()            // ERROR "expecting expression|expected operand"
 }
 
diff --git a/gcc/testsuite/go.test/test/fixedbugs/issue4085a.go b/gcc/testsuite/go.test/test/fixedbugs/issue4085a.go
index 200290a081d..f457fcf2b12 100644
--- a/gcc/testsuite/go.test/test/fixedbugs/issue4085a.go
+++ b/gcc/testsuite/go.test/test/fixedbugs/issue4085a.go
@@ -10,9 +10,9 @@ type T []int
 
 func main() {
 	_ = make(T, -1)    // ERROR "negative"
-	_ = make(T, 0.5)   // ERROR "constant 0.5 truncated to integer|non-integer len argument"
+	_ = make(T, 0.5)   // ERROR "truncated to integer|non-integer len argument"
 	_ = make(T, 1.0)   // ok
-	_ = make(T, 1<<63) // ERROR "len argument too large"
+	_ = make(T, 1<<63) // ERROR "integer constant overflow|len argument too large"
 	_ = make(T, 0, -1) // ERROR "negative cap"
 	_ = make(T, 10, 0) // ERROR "len larger than cap"
 }
diff --git a/gcc/testsuite/go.test/test/shift1.go b/gcc/testsuite/go.test/test/shift1.go
index d6a6c38839f..3b1aa9e6900 100644
--- a/gcc/testsuite/go.test/test/shift1.go
+++ b/gcc/testsuite/go.test/test/shift1.go
@@ -189,12 +189,12 @@ func _() {
 	var m1 map[int]string
 	delete(m1, 1<<s)
 	delete(m1, 1.<<s)
-	delete(m1, 1.1<<s) // ERROR "truncated|shift of type float64"
+	delete(m1, 1.1<<s) // ERROR "truncated|shift of type float64|incompatible|non-integer"
 
 	var m2 map[float32]string
-	delete(m2, 1<<s)   // ERROR "invalid|cannot use 1 << s as type float32"
-	delete(m2, 1.<<s)  // ERROR "invalid|cannot use 1 << s as type float32"
-	delete(m2, 1.1<<s) // ERROR "invalid|cannot use 1.1 << s as type float32"
+	delete(m2, 1<<s)   // ERROR "invalid|cannot use 1 << s as type float32|incompatible"
+	delete(m2, 1.<<s)  // ERROR "invalid|cannot use 1 << s as type float32|incompatible"
+	delete(m2, 1.1<<s) // ERROR "invalid|cannot use 1.1 << s as type float32|incompatible"
 }
 
 // shifts of shifts

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-19  4:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-19  4:49 [gcc r14-8268] gcc/testsuite/go.test: update for lowering pass move Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).