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[])
{
#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
......
......@@ -14,7 +14,7 @@ int main(int argc, char *argv[])
#ifdef FAIL
int x = 0;
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."
#endif
#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