1 #include <ccan/typesafe_cb/typesafe_cb.h>
20 static void take_any(struct any *any)
24 int main(int argc, char *argv[])
27 /* Otherwise we get unused warnings for these. */
28 struct foo *foo = NULL;
29 struct bar *bar = NULL;
30 struct baz *baz = NULL;
32 struct other *arg = NULL;
34 take_any(cast_if_any(struct any *, arg, foo,
35 struct foo *, struct bar *, struct baz *));
36 take_any(cast_if_any(struct any *, arg, bar,
37 struct foo *, struct bar *, struct baz *));
38 take_any(cast_if_any(struct any *, arg, baz,
39 struct foo *, struct bar *, struct baz *));