]> Cypherpunks repositories - gostls13.git/commitdiff
test: add test that caused gccgo to crash
authorIan Lance Taylor <iant@golang.org>
Thu, 14 Jul 2022 01:31:30 +0000 (18:31 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 19 Aug 2022 03:32:04 +0000 (03:32 +0000)
For #23868

Change-Id: I07b001836e8d1411609ab84786398a5b575bf8d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/417481
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
test/fixedbugs/issue23868.go [new file with mode: 0644]

diff --git a/test/fixedbugs/issue23868.go b/test/fixedbugs/issue23868.go
new file mode 100644 (file)
index 0000000..af15c5f
--- /dev/null
@@ -0,0 +1,14 @@
+// compile
+
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Crashed gccgo.
+
+package p
+
+var F func([0]int) int
+var G func() [0]int
+
+var V = make([]int, F(G()))