From: Ian Lance Taylor Date: Fri, 11 Oct 2019 22:35:49 +0000 (-0700) Subject: cmd/go: add test for gccgo name mangling crash X-Git-Tag: go1.14beta1~735 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dc37bd2ac92c2fe0aaef9f15ac3e4f747f2bf341;p=gostls13.git 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 --- 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) +}