]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add test for gccgo name mangling crash
authorIan Lance Taylor <iant@golang.org>
Fri, 11 Oct 2019 22:35:49 +0000 (15:35 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Oct 2019 23:45:22 +0000 (23:45 +0000)
Updates #33871

Change-Id: I73b1513a89ad89126159ce03ee72b922cd01916c
Reviewed-on: https://go-review.googlesource.com/c/go/+/200837
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/testdata/script/gccgo_mangle.txt [new file with mode: 0644]

diff --git a/src/cmd/go/testdata/script/gccgo_mangle.txt b/src/cmd/go/testdata/script/gccgo_mangle.txt
new file mode 100644 (file)
index 0000000..7a09a80
--- /dev/null
@@ -0,0 +1,15 @@
+# Issue 33871.
+
+cd m/a.0
+go build
+
+-- m/go.mod --
+module m
+-- m/a.0/a.go --
+package a
+
+type T int
+
+func (t T) M() int {
+       return int(t)
+}