Test for bug #3459.