1 #include <ccan/typesafe_cb/typesafe_cb.h>
24 static void take_any(struct any *any)
28 int main(int argc, char *argv[])
32 #if !HAVE_TYPEOF||!HAVE_BUILTIN_CHOOSE_EXPR||!HAVE_BUILTIN_TYPES_COMPATIBLE_P
33 #error "Unfortunately we don't fail if cast_if_type is a noop."
39 take_any(cast_if_any(struct any *, arg, arg,
40 struct foo *, struct bar *, struct baz *));