Regression test for #3449