test: add test that caused gccgo to crash on valid code

Update #8612

LGTM=minux
R=golang-codereviews, minux
CC=golang-codereviews
https://golang.org/cl/135170043
1 file changed