aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-07-26 12:13:55 -0700
committerMatthew Dempsky <mdempsky@google.com>2021-07-26 12:19:12 -0700
commit996b0dbc65954bbf538278bcc41f832f79a1ca03 (patch)
treeb0889e3dedc9299e53be9c962604e7402299072a /test
parentbfcb7c4c8adadd6191c3fdacf2b59136b0da5c1c (diff)
parentecaa6816bfdbcef2ad749958a11a321de5c2ebd8 (diff)
downloadgo-996b0dbc65954bbf538278bcc41f832f79a1ca03.tar.gz
go-996b0dbc65954bbf538278bcc41f832f79a1ca03.zip
[dev.typeparams] all: merge master (ecaa681) into dev.typeparams
Conflicts: - src/cmd/compile/internal/ssagen/ssa.go CL 336629 touched code that had already been removed on dev.typeparams. Merge List: + 2021-07-26 ecaa6816bf doc: clarify non-nil zero length slice to array pointer conversion + 2021-07-26 1868f8296e crypto/x509: update iOS bundled roots to version 55188.120.1.0.1 + 2021-07-25 849b791129 spec: use consistent capitalization for rune literal hex constants + 2021-07-23 0914646ab9 doc/1.17: fix two dead rfc links + 2021-07-22 052da5717e cmd/compile: do not change field offset in ABI analysis Change-Id: Ie570ec3f6a3241e0495e39e8a73b3a09a9368605
Diffstat (limited to 'test')
-rw-r--r--test/fixedbugs/issue47317.dir/a.s6
-rw-r--r--test/fixedbugs/issue47317.dir/x.go17
-rw-r--r--test/fixedbugs/issue47317.go7
3 files changed, 30 insertions, 0 deletions
diff --git a/test/fixedbugs/issue47317.dir/a.s b/test/fixedbugs/issue47317.dir/a.s
new file mode 100644
index 0000000000..b969ddb972
--- /dev/null
+++ b/test/fixedbugs/issue47317.dir/a.s
@@ -0,0 +1,6 @@
+// Copyright 2021 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.
+
+TEXT ·G(SB),4,$0
+ RET
diff --git a/test/fixedbugs/issue47317.dir/x.go b/test/fixedbugs/issue47317.dir/x.go
new file mode 100644
index 0000000000..83b5542144
--- /dev/null
+++ b/test/fixedbugs/issue47317.dir/x.go
@@ -0,0 +1,17 @@
+// Copyright 2021 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.
+
+// Issue 47317: ICE when calling ABI0 function via func value.
+
+package main
+
+func main() { F() }
+
+func F() interface{} {
+ g := G
+ g(1)
+ return G
+}
+
+func G(x int) [2]int
diff --git a/test/fixedbugs/issue47317.go b/test/fixedbugs/issue47317.go
new file mode 100644
index 0000000000..3548e90d02
--- /dev/null
+++ b/test/fixedbugs/issue47317.go
@@ -0,0 +1,7 @@
+// builddir
+
+// Copyright 2021 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.
+
+package ignored