1 #include <ccan/typesafe_cb/typesafe_cb.h>
20 static void take_any(struct any *any)
24 int main(int argc, char *argv[])
26 struct foo *foo = NULL;
27 struct bar *bar = NULL;
28 struct baz *baz = NULL;
29 struct other *arg = NULL;
31 take_any(cast_if_any(struct any *, arg, foo,
32 struct foo *, struct bar *, struct baz *));
33 take_any(cast_if_any(struct any *, arg, bar,
34 struct foo *, struct bar *, struct baz *));
35 take_any(cast_if_any(struct any *, arg, baz,
36 struct foo *, struct bar *, struct baz *));