Lines Matching refs:dup
60 _cleanup_free_ int *dup; in TEST() local
64 dup = memdup_suffix0_multiply(org, sizeof(int), 3); in TEST()
65 assert_se(dup); in TEST()
66 assert_se(dup[0] == 1); in TEST()
67 assert_se(dup[1] == 2); in TEST()
68 assert_se(dup[2] == 3); in TEST()
69 assert_se(((uint8_t*) dup)[sizeof(int) * 3] == 0); in TEST()
70 free(dup); in TEST()
72 dup = memdup_multiply(org, sizeof(int), 3); in TEST()
73 assert_se(dup); in TEST()
74 assert_se(dup[0] == 1); in TEST()
75 assert_se(dup[1] == 2); in TEST()
76 assert_se(dup[2] == 3); in TEST()
78 memzero(dup + 3, malloc_usable_size(dup) - sizeof(int) * 3); in TEST()
80 p = dup; in TEST()
81 assert_se(GREEDY_REALLOC0(dup, 2) == p); in TEST()
83 p = GREEDY_REALLOC0(dup, 10); in TEST()
84 assert_se(p == dup); in TEST()