cherry-pick the test case from PR #329
[inline optimizer] lhs of fused expr should be taken into consideration
Merge branch 'kazuho/issues/329' (fix #329)