add test case for Issue 9449
Merge pull request #4049 from WalterBright/fix9449

add test case for Issue 9449