]> git.ozlabs.org Git - ccan/blobdiff - typesafe_cb/test/compile_fail-typesafe_cb_postargs.c
Compile even with !HAVE_TYPEOF etc, and remove redundant test case.
[ccan] / typesafe_cb / test / compile_fail-typesafe_cb_postargs.c
index e6ec82606cef107bcb79b62cfa464257c7cfd811..099eb25755559e1c26fd3d807c265d7bf7f55071 100644 (file)
@@ -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