Fix parsing of binary floating point number

* tccpp.c (parse_number): `shift' should be 1 while parsing binary
floating point number.
* tests/tests2/70_floating_point_literals.c: New test cases for
floating point number parsing.
This commit is contained in:
Lee Duhem
2014-12-15 16:32:08 +08:00
parent 20a5845a47
commit 5a76c5d2f3
4 changed files with 133 additions and 2 deletions

View File

@ -88,7 +88,8 @@ TESTS = \
66_macro_concat_end.test \
67_macro_concat.test \
68_macro_param_list_err_1.test \
69_macro_param_list_err_2.test
69_macro_param_list_err_2.test \
70_floating_point_literals.test
# 34_array_assignment.test -- array assignment is not in C standard