]> git.ozlabs.org Git - ccan/blobdiff - ccan/typesafe_cb/test/compile_fail-cast_if_any.c
ccan_tokenizer, check_type, container_of, typesafe_cb: handle !HAVE_TYPEOF
[ccan] / ccan / typesafe_cb / test / compile_fail-cast_if_any.c
index 9ead3de562f3309b9c4df70be550b57a74845d61..dfb51167ffbe7c01c384aab5be0eb4eabf1d0586 100644 (file)
@@ -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