A regression test for bxc #795.