X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_fail-typesafe_cb_cast-multi.c;fp=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_fail-typesafe_cb_cast-multi.c;h=62b5f91e1807cdaaebff2a0a0f95bd554388add5;hb=72dc7d42c92fcfbafcc7e3b3b1518c9aa4a2e874;hp=d7d481cb60e42af5b816624012147947d511d519;hpb=838db0d7ea37fc2a21d03d159b55b042f8144cb3;p=ccan diff --git a/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c b/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c index d7d481cb..62b5f91e 100644 --- a/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c +++ b/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c @@ -29,7 +29,7 @@ int main(int argc, char *argv[]) { #ifdef FAIL struct other -#if !HAVE_TYPEOF || !HAVE_CAST_TO_UNION +#if !HAVE_TYPEOF||!HAVE_BUILTIN_CHOOSE_EXPR||!HAVE_BUILTIN_TYPES_COMPATIBLE_P #error "Unfortunately we don't fail if typesafe_cb_cast is a noop." #endif #else