test: add test case for issue 8074.
test: add test case for issue 8074.

Fixes issue 8074.

The issue was not reproduceable by revision

go version devel +e0ad7e329637 Thu Jun 19 22:19:56 2014 -0700 linux/arm

But include the original test case in case the issue reopens itself.

LGTM=dvyukov
R=golang-codereviews, dvyukov
CC=golang-codereviews
https://codereview.appspot.com/107290043

webfd/go-zh,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,bryanxu/go-zh,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,bryanxu/go-zh,webfd/go-zh,sanjosh/sanjos100-tipc,bryanxu/go-zh,bryanxu/go-zh,d0f/go-zh,bryanxu/go-zh,webfd/go-zh,webfd/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,webfd/go-zh,bryanxu/go-zh,d0f/go-zh,d0f/go-zh,bryanxu/go-zh,webfd/go-zh,bryanxu/go-zh,d0f/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,d0f/go-zh,webfd/go-zh,d0f/go-zh,webfd/go-zh