From 58e38c707741ee6665971fc3703122b5d6c094d5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= <clement.chigot@atos.net>
Date: Mon, 11 May 2020 09:41:59 -0500
Subject: [PATCH] gcc/testsuite/go: increase memory in issue4085b.go

On aix/ppc64, it's possible to allocate an array of 1<<50 int, because of the
wider address space. Thus, increase it to 1<<59 like in Golang toolchain in
order to trigger the panic.

Changelog:
2020-05-19 Clement Chigot <clement.chigot@atos.net>
  * go.test/test/fixedbugs/issue4085b.go: increase the size of n2 in 64bit
---
 gcc/testsuite/go.test/test/fixedbugs/issue4085b.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/go.test/test/fixedbugs/issue4085b.go b/gcc/testsuite/go.test/test/fixedbugs/issue4085b.go
index 6bf315fcc2f..b532d1696c7 100644
--- a/gcc/testsuite/go.test/test/fixedbugs/issue4085b.go
+++ b/gcc/testsuite/go.test/test/fixedbugs/issue4085b.go
@@ -21,7 +21,7 @@ func main() {
 	shouldPanic("cap out of range", func() { _ = make(T, 0, int64(n)) })
 	var t *byte
 	if unsafe.Sizeof(t) == 8 {
-		var n2 int64 = 1 << 50
+		var n2 int64 = 1 << 59
 		shouldPanic("len out of range", func() { _ = make(T, int(n2)) })
 		shouldPanic("cap out of range", func() { _ = make(T, 0, int(n2)) })
 		n2 = 1<<63 - 1
-- 
2.25.0

