X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=typesafe_cb%2Ftest%2Fcompile_fail-typesafe_cb_postargs.c;h=099eb25755559e1c26fd3d807c265d7bf7f55071;hb=bd9f392599277acd2404688d034aa98b652ee1b7;hp=e6ec82606cef107bcb79b62cfa464257c7cfd811;hpb=246bde098d4f5ac212840a41b740297dd94e1135;p=ccan diff --git a/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c b/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c index e6ec8260..099eb257 100644 --- a/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c +++ b/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c @@ -15,6 +15,9 @@ int main(int argc, char *argv[]) { #ifdef FAIL int *p; +#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 char *p; #endif