]> git.ozlabs.org Git - ccan/blobdiff - typesafe_cb/test/compile_fail-typesafe_cb_preargs.c
Compile even with !HAVE_TYPEOF etc, and remove redundant test case.
[ccan] / typesafe_cb / test / compile_fail-typesafe_cb_preargs.c
index ce1ada2f496e1a10903ca9f96d6fb1532fe6e242..38daec51063fb718964d59abb08dd658c76b1139 100644 (file)
@@ -16,6 +16,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