The testcase is a slight simplification of dholbert's testcase 2 (attachment 8456312) in the bug. It fails in the reftest harness without the patch, and passes in the reftest harness with the patch.