Added test case for GitHub ldc-developers/ldc#497.