Lines Matching defs:test_pool
11 extern struct pool test_pool;
17 uint32max_array_t *m1 = p_new(&test_pool, uint32max_array_t, 4294967297ULL);
19 char *m2 = p_new(&test_pool, char, 18446744073709551615ULL);
21 uint32_t *m3 = p_new(&test_pool, uint32_t, 4611686018427387903ULL);
25 test_assert(p_realloc_type(&test_pool, m1, uint32max_array_t, 4294967296ULL, 4294967297ULL) == POINTER_CAST(18446744073709551615ULL));
26 test_assert(p_realloc_type(&test_pool, m2, char, 18446744073709551614ULL, 18446744073709551615ULL) == POINTER_CAST(18446744073709551615ULL));
27 test_assert(p_realloc_type(&test_pool, m3, uint32_t, 4611686018427387902ULL, 4611686018427387903ULL) == POINTER_CAST(18446744073709551612ULL));
30 test_assert(p_realloc_type(&test_pool, m1, uint32max_array_t, 4294967297ULL, 4294967296ULL) == POINTER_CAST(18446744069414584320ULL));
31 test_assert(p_realloc_type(&test_pool, m2, char, 18446744073709551615ULL, 18446744073709551614ULL) == POINTER_CAST(18446744073709551614ULL));
32 test_assert(p_realloc_type(&test_pool, m3, uint32_t, 4611686018427387903ULL, 4611686018427387902ULL) == POINTER_CAST(18446744073709551608ULL));
34 uint32max_array_t *m1 = p_new(&test_pool, uint32max_array_t, 65537);
36 char *m2 = p_new(&test_pool, char, 4294967295U);
38 uint32_t *m3 = p_new(&test_pool, uint32_t, 1073741823U);
42 test_assert(p_realloc_type(&test_pool, m1, uint32max_array_t, 65536, 65537) == POINTER_CAST(4294967295U));
43 test_assert(p_realloc_type(&test_pool, m2, char, 4294967294U, 4294967295U) == POINTER_CAST(4294967295U));
44 test_assert(p_realloc_type(&test_pool, m3, uint32_t, 1073741822U, 1073741823U) == POINTER_CAST(4294967292U));
47 test_assert(p_realloc_type(&test_pool, m1, uint32max_array_t, 65537, 65536) == POINTER_CAST(4294901760U));
48 test_assert(p_realloc_type(&test_pool, m2, char, 4294967295U, 4294967294U) == POINTER_CAST(4294967294U));
49 test_assert(p_realloc_type(&test_pool, m3, uint32_t, 1073741823U, 1073741822U) == POINTER_CAST(4294967288U));
66 m1 = p_new(&test_pool, uint32max_array_t, 4294967298ULL);
69 m2 = p_new(&test_pool, uint32_t, 4611686018427387904ULL);
72 m1 = p_realloc_type(&test_pool, m1, uint32max_array_t, 4294967297ULL, 4294967298ULL);
75 m2 = p_realloc_type(&test_pool, m2, uint32_t, 4611686018427387903ULL, 4611686018427387904ULL);
78 m1 = p_realloc_type(&test_pool, m1, uint32max_array_t, 4294967298ULL, 4294967297ULL);
81 m2 = p_realloc_type(&test_pool, m2, uint32_t, 4611686018427387904ULL, 4611686018427387903ULL);
88 m1 = p_new(&test_pool, uint32max_array_t, 65538);
91 m2 = p_new(&test_pool, uint32_t, 1073741824U);
94 m1 = p_realloc_type(&test_pool, m1, uint32max_array_t, 65537, 65538);
97 m2 = p_realloc_type(&test_pool, m2, uint32_t, 1073741823U, 1073741824U);
100 m1 = p_realloc_type(&test_pool, m1, uint32max_array_t, 65538, 65537);
103 m2 = p_realloc_type(&test_pool, m2, uint32_t, 1073741824U, 1073741823U);
136 struct pool test_pool = {