diff options
| author | Ian Lance Taylor <iant@golang.org> | 2019-10-11 15:35:49 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2019-10-15 23:45:22 +0000 |
| commit | dc37bd2ac92c2fe0aaef9f15ac3e4f747f2bf341 (patch) | |
| tree | 831f0395a2c25b86e2c16b09fe557306ec920c13 /src | |
| parent | 898f9db81f112ca33aa2102633f957f9669c062d (diff) | |
| download | go-dc37bd2ac92c2fe0aaef9f15ac3e4f747f2bf341.tar.xz | |
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 <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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/go/testdata/script/gccgo_mangle.txt | 15 |
1 files changed, 15 insertions, 0 deletions
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) +} |
