Move Issue 7504 test case to runnable/casting.d
fix Issue 10842 - Some integer casts wrongly remove side-effect of the operand
Merge pull request #2597 from 9rnsr/fix10842

Issue 10842 - Some integer casts wrongly remove side-effect of the operand.