Lines Matching refs:c
22 __attribute__((unused)) char *s, *c; in strtol_entry() local
30 TEST(l, strtol(s = "2147483648", &c, 0), 2147483647L, "uncaught overflow %ld != %ld"); in strtol_entry()
31 TEST2(i, c - s, 10, "wrong final position %d != %d"); in strtol_entry()
32 TEST(l, strtol(s = "-2147483649", &c, 0), -2147483647L - 1, "uncaught overflow %ld != %ld"); in strtol_entry()
33 TEST2(i, c - s, 11, "wrong final position %d != %d"); in strtol_entry()
34 TEST(ul, strtoul(s = "4294967296", &c, 0), 4294967295UL, "uncaught overflow %lu != %lu"); in strtol_entry()
35 TEST2(i, c - s, 10, "wrong final position %d != %d"); in strtol_entry()
36 TEST(ul, strtoul(s = "-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in strtol_entry()
37 TEST2(i, c - s, 2, "wrong final position %d != %d"); in strtol_entry()
38 TEST(ul, strtoul(s = "-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in strtol_entry()
39 TEST2(i, c - s, 2, "wrong final position %d != %d"); in strtol_entry()
40 TEST(ul, strtoul(s = "-2147483648", &c, 0), -2147483648UL, "rejected negative %lu != %lu"); in strtol_entry()
41 TEST2(i, c - s, 11, "wrong final position %d != %d"); in strtol_entry()
42 TEST(ul, strtoul(s = "-2147483649", &c, 0), -2147483649UL, "rejected negative %lu != %lu"); in strtol_entry()
43 TEST2(i, c - s, 11, "wrong final position %d != %d"); in strtol_entry()
44 …TEST(ul, strtoul(s = "-4294967296", &c, 0), 4294967295UL, "uncaught negative overflow %lu != %lu"); in strtol_entry()
45 TEST2(i, c - s, 11, "wrong final position %d != %d"); in strtol_entry()
49 …TEST(l, strtol(s = "9223372036854775808", &c, 0), 9223372036854775807L, "uncaught overflow %ld != … in strtol_entry()
50 TEST2(i, c - s, 19, "wrong final position %d != %d"); in strtol_entry()
51 …TEST(l, strtol(s = "-9223372036854775809", &c, 0), -9223372036854775807L - 1, "uncaught overflow %… in strtol_entry()
52 TEST2(i, c - s, 20, "wrong final position %d != %d"); in strtol_entry()
53 …TEST(ul, strtoul(s = "18446744073709551616", &c, 0), 18446744073709551615UL, "uncaught overflow %l… in strtol_entry()
54 TEST2(i, c - s, 20, "wrong final position %d != %d"); in strtol_entry()
55 TEST(ul, strtoul(s = "-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in strtol_entry()
56 TEST2(i, c - s, 2, "wrong final position %d != %d"); in strtol_entry()
57 TEST(ul, strtoul(s = "-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in strtol_entry()
58 TEST2(i, c - s, 2, "wrong final position %d != %d"); in strtol_entry()
59 …TEST(ul, strtoul(s = "-9223372036854775808", &c, 0), -9223372036854775808UL, "rejected negative %l… in strtol_entry()
60 TEST2(i, c - s, 20, "wrong final position %d != %d"); in strtol_entry()
61 …TEST(ul, strtoul(s = "-9223372036854775809", &c, 0), -9223372036854775809UL, "rejected negative %l… in strtol_entry()
62 TEST2(i, c - s, 20, "wrong final position %d != %d"); in strtol_entry()
63 …TEST(ul, strtoul(s = "-18446744073709551616", &c, 0), 18446744073709551615UL, "uncaught negative o… in strtol_entry()
64 TEST2(i, c - s, 21, "wrong final position %d != %d"); in strtol_entry()
73 …TEST(ll, strtoll(s = "9223372036854775808", &c, 0), 9223372036854775807LL, "uncaught overflow %lld… in strtol_entry()
74 TEST2(i, c - s, 19, "wrong final position %d != %d"); in strtol_entry()
75 …TEST(ll, strtoll(s = "-9223372036854775809", &c, 0), -9223372036854775807LL - 1, "uncaught overflo… in strtol_entry()
76 TEST2(i, c - s, 20, "wrong final position %d != %d"); in strtol_entry()
77 …TEST(ull, strtoull(s = "18446744073709551616", &c, 0), 18446744073709551615ULL, "uncaught overflow… in strtol_entry()
78 TEST2(i, c - s, 20, "wrong final position %d != %d"); in strtol_entry()
79 TEST(ull, strtoull(s = "-1", &c, 0), -1ULL, "rejected negative %llu != %llu"); in strtol_entry()
80 TEST2(i, c - s, 2, "wrong final position %d != %d"); in strtol_entry()
81 TEST(ull, strtoull(s = "-2", &c, 0), -2ULL, "rejected negative %llu != %llu"); in strtol_entry()
82 TEST2(i, c - s, 2, "wrong final position %d != %d"); in strtol_entry()
83 …TEST(ull, strtoull(s = "-9223372036854775808", &c, 0), -9223372036854775808ULL, "rejected negative… in strtol_entry()
84 TEST2(i, c - s, 20, "wrong final position %d != %d"); in strtol_entry()
85 …TEST(ull, strtoull(s = "-9223372036854775809", &c, 0), -9223372036854775809ULL, "rejected negative… in strtol_entry()
86 TEST2(i, c - s, 20, "wrong final position %d != %d"); in strtol_entry()
87 …TEST(ull, strtoull(s = "-18446744073709551616", &c, 0), 18446744073709551615ULL, "uncaught negativ… in strtol_entry()
88 TEST2(i, c - s, 21, "wrong final position %d != %d"); in strtol_entry()
97 TEST(l, strtol(s = "0F5F", &c, 16), 0x0f5fL, "%ld != %ld"); in strtol_entry()
99 TEST(l, strtol(s = "0xz", &c, 16), 0L, "%ld != %ld"); in strtol_entry()
100 TEST2(i, c - s, 1, "wrong final position %ld != %ld"); in strtol_entry()
102 TEST(l, strtol(s = "0x1234", &c, 16), 0x1234, "%ld != %ld"); in strtol_entry()
103 TEST2(i, c - s, 6, "wrong final position %ld != %ld"); in strtol_entry()
105 c = NULL; in strtol_entry()
106 TEST3(l, strtol(s = "123", &c, 36), 0, "%ld != %ld"); in strtol_entry()
107 TEST3(i, c - s, 0, "wrong final position %d != %d"); in strtol_entry()
109 TEST(l, strtol(s = " 15437", &c, 8), 015437, "%ld != %ld"); in strtol_entry()
110 TEST2(i, c - s, 7, "wrong final position %d != %d"); in strtol_entry()
112 TEST(l, strtol(s = " 1", &c, 0), 1, "%ld != %ld"); in strtol_entry()
113 TEST2(i, c - s, 3, "wrong final position %d != %d"); in strtol_entry()