This change adds a test that catches the bug which existed in [https://go-review.googlesource.com/#/c/29993/, /30101/). Change-Id: I71177fec0fcbca0dcec7fb11d3ad0a48df1e0b82 Reviewed-on: https://go-review.googlesource.com/30214 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>