Added some test cases that catch a parsing bug.

This commit is contained in:
Aaron Jacobs 2011-05-24 03:19:50 +00:00
parent f1053e7acb
commit e656c5fa2d
8 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1 @@
.=4300000001

View File

@ -0,0 +1,4 @@
// Out of 32-bit integer range, switch to double in 32-bit mode. Length the
// same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in
// order to catch a bug in the parsing code.
4300000001

View File

@ -0,0 +1 @@
.=19000000000000000001

View File

@ -0,0 +1,4 @@
// Out of 64-bit integer range, switch to double in all modes. Length the same
// as ULONG_MAX in base 10 and digit less than ULONG_MAX's last digit in order
// to catch a bug in the parsing code.
19000000000000000001

View File

@ -0,0 +1 @@
.=-2200000001

View File

@ -0,0 +1,4 @@
// Out of 32-bit signed integer range, switch to double in all modes. Length
// the same as INT_MIN in base 10 and digit less than INT_MIN's last digit in
// order to catch a bug in the parsing code.
-2200000001

View File

@ -0,0 +1 @@
.=-9300000000000000001

View File

@ -0,0 +1,4 @@
// Out of 64-bit signed integer range, switch to double in all modes. Length
// the same as LONG_MIN in base 10 and digit less than LONG_MIN's last digit in
// order to catch a bug in the parsing code.
-9300000000000000001