Added test case for LDC GitHub issue #378.