imrove issue 9892 test case
imrove issue 6795 test case
fix wrong line numbers with constant folding
Merge pull request #1885 from 9rnsr/fix_testcase

Fix test cases for issue 9892 and 6795