Add test case for GitHub issue ldc-developers/ldc#762.