Add test case for PR12377, it was fixed by r194116.