mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
* stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
libc/1864). * stdlib/tst-strtoll.c: Likewise.
This commit is contained in:
parent
bf025fc19f
commit
b28ea43a7d
@ -54,7 +54,7 @@ static const struct ltest tests[] =
|
||||
{"yz!", 34 * 36 + 35, 36, '!', 0},
|
||||
{"-yz", -(34*36 + 35), 36, 0, 0},
|
||||
{"GhI4", ((16*20 + 17)*20 + 18)*20 + 4, 20, 0, 0},
|
||||
|
||||
|
||||
/* extremes... */
|
||||
#if LONG_MAX == 0x7fffffff
|
||||
{"2147483647", 2147483647, 0, 0, 0},
|
||||
@ -73,6 +73,7 @@ static const struct ltest tests[] =
|
||||
{"-9223372036854775808", -9223372036854775808, 0, 0, 0},
|
||||
{"-9223372036854775809", -9223372036854775808, 0, 0, ERANGE},
|
||||
{"0x112233445566778899z", 9223372036854775807, 16, 'z', ERANGE},
|
||||
{"0xFFFFFFFFFFFF00FF" , 9223372036854775807, 0, 0, ERANGE},
|
||||
#endif
|
||||
{NULL, 0, 0, 0, 0},
|
||||
|
||||
|
@ -68,6 +68,7 @@ static const struct ltest tests[] =
|
||||
{"-9223372036854775808", -9223372036854775807ll - 1, 0, 0, 0},
|
||||
{"-9223372036854775809", -9223372036854775807ll - 1, 0, 0, ERANGE},
|
||||
{"0x112233445566778899z", 9223372036854775807ll, 16, 'z', ERANGE},
|
||||
{"0xFFFFFFFFFFFF00FF" , 9223372036854775807ll, 0, 0, ERANGE},
|
||||
{NULL, 0, 0, 0, 0},
|
||||
|
||||
/* Then unsigned. */
|
||||
|
Loading…
Reference in New Issue
Block a user