diff options
author | Andreas Jaeger <aj@suse.de> | 2000-08-22 05:57:04 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-08-22 05:57:04 +0000 |
commit | b28ea43a7da3658b71200a1ab2ce5100cc553685 (patch) | |
tree | c0e63b498cfac4dd7d19dbb0014046f928a11bb2 /stdlib/tst-strtol.c | |
parent | bf025fc19f46f0dee5389354de7f142f2fcd75fa (diff) | |
download | glibc-b28ea43a7da3658b71200a1ab2ce5100cc553685.zip glibc-b28ea43a7da3658b71200a1ab2ce5100cc553685.tar.gz glibc-b28ea43a7da3658b71200a1ab2ce5100cc553685.tar.bz2 |
* stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
libc/1864).
* stdlib/tst-strtoll.c: Likewise.
Diffstat (limited to 'stdlib/tst-strtol.c')
-rw-r--r-- | stdlib/tst-strtol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdlib/tst-strtol.c b/stdlib/tst-strtol.c index 2d5d960..d4ab95e 100644 --- a/stdlib/tst-strtol.c +++ b/stdlib/tst-strtol.c @@ -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}, |