Lines Matching +full:- +full:i
2 * Copyright © 2005-2020 Rich Felker
34 #pragma GCC diagnostic ignored "-Wpragmas"
35 #pragma GCC diagnostic ignored "-Wunknown-warning-option"
36 #pragma GCC diagnostic ignored "-Wformat-extra-args"
37 #pragma GCC diagnostic ignored "-Wformat"
49 int i; in test_strtol() local
68 TEST2(i, c-s, 10, "wrong final position %d != %d"); in test_strtol()
69 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in test_strtol()
71 TEST(l, strtol(s="-2147483649", &c, 0), -2147483647L-1, "uncaught overflow %ld != %ld"); in test_strtol()
72 TEST2(i, c-s, 11, "wrong final position %d != %d"); in test_strtol()
73 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in test_strtol()
76 TEST2(i, c-s, 10, "wrong final position %d != %d"); in test_strtol()
77 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in test_strtol()
79 TEST(ul, strtoul(s="-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in test_strtol()
80 TEST2(i, c-s, 2, "wrong final position %d != %d"); in test_strtol()
81 TEST2(i, errno, 0, "spurious errno %d != %d"); in test_strtol()
83 TEST(ul, strtoul(s="-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in test_strtol()
84 TEST2(i, c-s, 2, "wrong final position %d != %d"); in test_strtol()
85 TEST2(i, errno, 0, "spurious errno %d != %d"); in test_strtol()
87 TEST(ul, strtoul(s="-2147483648", &c, 0), -2147483648UL, "rejected negative %lu != %lu"); in test_strtol()
88 TEST2(i, c-s, 11, "wrong final position %d != %d"); in test_strtol()
89 TEST2(i, errno, 0, "spurious errno %d != %d"); in test_strtol()
91 TEST(ul, strtoul(s="-2147483649", &c, 0), -2147483649UL, "rejected negative %lu != %lu"); in test_strtol()
92 TEST2(i, c-s, 11, "wrong final position %d != %d"); in test_strtol()
93 TEST2(i, errno, 0, "spurious errno %d != %d"); in test_strtol()
97 TEST2(i, c-s, 19, "wrong final position %d != %d"); in test_strtol()
98 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in test_strtol()
100 …TEST(l, strtol(s="-9223372036854775809", &c, 0), -9223372036854775807L-1, "uncaught overflow %ld !… in test_strtol()
101 TEST2(i, c-s, 20, "wrong final position %d != %d"); in test_strtol()
102 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in test_strtol()
105 TEST2(i, c-s, 20, "wrong final position %d != %d"); in test_strtol()
106 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in test_strtol()
108 TEST(ul, strtoul(s="-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in test_strtol()
109 TEST2(i, c-s, 2, "wrong final position %d != %d"); in test_strtol()
110 TEST2(i, errno, 0, "spurious errno %d != %d"); in test_strtol()
112 TEST(ul, strtoul(s="-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in test_strtol()
113 TEST2(i, c-s, 2, "wrong final position %d != %d"); in test_strtol()
114 TEST2(i, errno, 0, "spurious errno %d != %d"); in test_strtol()
116 …TEST(ul, strtoul(s="-9223372036854775808", &c, 0), -9223372036854775808UL, "rejected negative %lu … in test_strtol()
117 TEST2(i, c-s, 20, "wrong final position %d != %d"); in test_strtol()
118 TEST2(i, errno, 0, "spurious errno %d != %d"); in test_strtol()
120 …TEST(ul, strtoul(s="-9223372036854775809", &c, 0), -9223372036854775809UL, "rejected negative %lu … in test_strtol()
121 TEST2(i, c-s, 20, "wrong final position %d != %d"); in test_strtol()
122 TEST2(i, errno, 0, "spurious errno %d != %d"); in test_strtol()
130 TEST2(i, c-s, 1, "wrong final position %ld != %ld"); in test_strtol()
133 TEST2(i, c-s, 6, "wrong final position %ld != %ld"); in test_strtol()
145 k = j - '0'; in test_strtol()
147 k = j - 'A' + 10; in test_strtol()
149 k = j - 'a' + 10; in test_strtol()
153 TEST2(i, c-s, 5, "wrong final position %ld != %ld"); in test_strtol()
156 TEST2(i, c-s, 4, "wrong final position %ld != %ld"); in test_strtol()
163 TEST2(i, c-s, 0, "wrong final position %d != %d"); in test_strtol()
164 TEST2(i, errno, EINVAL, "%d != %d"); in test_strtol()
167 TEST2(i, c-s, 7, "wrong final position %d != %d"); in test_strtol()
170 TEST2(i, c-s, 3, "wrong final position %d != %d"); in test_strtol()