From dc37bd2ac92c2fe0aaef9f15ac3e4f747f2bf341 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 11 Oct 2019 15:35:49 -0700 Subject: [PATCH] cmd/go: add test for gccgo name mangling crash Updates #33871 Change-Id: I73b1513a89ad89126159ce03ee72b922cd01916c Reviewed-on: https://go-review.googlesource.com/c/go/+/200837 Run-TryBot: Ian Lance Taylor Run-TryBot: Bryan C. Mills Reviewed-by: Bryan C. Mills Reviewed-by: Than McIntosh TryBot-Result: Gobot Gobot --- src/cmd/go/testdata/script/gccgo_mangle.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/cmd/go/testdata/script/gccgo_mangle.txt diff --git a/src/cmd/go/testdata/script/gccgo_mangle.txt b/src/cmd/go/testdata/script/gccgo_mangle.txt new file mode 100644 index 0000000000..7a09a8002e --- /dev/null +++ b/src/cmd/go/testdata/script/gccgo_mangle.txt @@ -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) +}