X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_fail-cast_if_any.c;fp=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_fail-cast_if_any.c;h=dfb51167ffbe7c01c384aab5be0eb4eabf1d0586;hb=da72623aec30213a593bd23dca80c89416598f75;hp=9ead3de562f3309b9c4df70be550b57a74845d61;hpb=ad3f309e3c13d6b88864aab146895c9df9bc6e5b;p=ccan 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