X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_fail-cast_if_any.c;h=dfb51167ffbe7c01c384aab5be0eb4eabf1d0586;hp=9ead3de562f3309b9c4df70be550b57a74845d61;hb=076877c266706ba432987195422a1e8653bd0c3b;hpb=175ca4aa64c3489011b441a8c709693af1e70db0 diff --git a/ccan/typesafe_cb/test/compile_fail-cast_if_any.c b/ccan/typesafe_cb/test/compile_fail-cast_if_any.c index 9ead3de5..dfb51167 100644 --- a/ccan/typesafe_cb/test/compile_fail-cast_if_any.c +++ b/ccan/typesafe_cb/test/compile_fail-cast_if_any.c @@ -29,6 +29,9 @@ int main(int argc, char *argv[]) { #ifdef FAIL struct other +#if !HAVE_TYPEOF||!HAVE_BUILTIN_CHOOSE_EXPR||!HAVE_BUILTIN_TYPES_COMPATIBLE_P +#error "Unfortunately we don't fail if cast_if_type is a noop." +#endif #else struct foo #endif