1 // Test demand channel infrastructure.
9 static void *count_fn(cf_t cf
) {
21 static void *count_int_fn(cf_t cf
) {
35 a
= cf_new_const(count_fn
);
36 b
= cf_new_const(count_int_fn
);
37 for (int i
= 0; i
< 100; i
++) {
39 EXPECT(!mpz_cmp_ui(z
, i
));
41 EXPECT(!mpz_cmp_ui(z
, i
));