92 const struct foo *
f = bob;
94 return f->f_payload ==
f + 1;
103 for (
i = 0;
i <
N; ++
i) {
104 foo_bob_init(&
rank[
i]);
108 for (
i = 0;
i <
N; ++
i)
111 for (
i = 0;
i <
N; ++
i)
112 foo_bob_fini(&
rank[
i]);
114 for (
i = 0;
i <
N; ++
i)
static struct m0_addb2_philter p
M0_TL_DEFINE(foo, static, struct foo)
M0_INTERNAL const char * m0_failed_condition
static struct m0_bob_type foo_bob
static void test_tlink_fini(void)
static void test_tlink_init(void)
static void test_check(void)
struct m0_tlink f_linkage
#define bob_of(ptr, type, field, bt)
static void test_bob_fini(void)
static void test_tlist_init(void)
M0_TL_DESCR_DEFINE(foo, "foo-s", static, struct foo, f_linkage, f_magix, magix, 0)
static bool foo_check(const void *bob)
static void test_bob_of(void)
static struct foo rank[N]
bool(* bt_check)(const void *bob)
M0_INTERNAL void m0_bob_type_tlist_init(struct m0_bob_type *bt, const struct m0_tl_descr *td)
static void test_bob_init(void)
M0_BOB_DEFINE(static, &foo_bob, foo)