Testcase for PR16673.