Add a test case for compiler error formatting.

Error formatting with mixed tab and space.
Fixed an error formatting issue f7b36054fcbcc0c26f

When using tab for code indent, the error marker
will be wrongly positioned.
Merge pull request #3543 from ysmood/err_info_issue

Fixed an error formatting issue