Test case for #7901.

Signed-off-by: Austin Seipp <aseipp@pobox.com>