test: add import test that caused an incorrect gccgo error R=golang-dev, gri CC=golang-dev https://golang.org/cl/5622048