Commit 72dc7d42 authored by Rusty Russell's avatar Rusty Russell

typesafe_cb: don't use HAVE_CAST_TO_UNION in tests.

This crept in, it should be the same as the tests in typesafe_cb.h.
parent 838db0d7
...@@ -29,7 +29,7 @@ int main(int argc, char *argv[]) ...@@ -29,7 +29,7 @@ int main(int argc, char *argv[])
{ {
#ifdef FAIL #ifdef FAIL
struct other 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." #error "Unfortunately we don't fail if typesafe_cb_cast is a noop."
#endif #endif
#else #else
......
...@@ -14,7 +14,7 @@ int main(int argc, char *argv[]) ...@@ -14,7 +14,7 @@ int main(int argc, char *argv[])
#ifdef FAIL #ifdef FAIL
int x = 0; int x = 0;
set_some_value(x); set_some_value(x);
#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." #error "Unfortunately we don't fail if typesafe_cb_cast is a noop."
#endif #endif
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment