X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcontainer_of%2Ftest%2Fcompile_fail-var-types.c;h=b7f395c761e7e91a327ef45bc86bec3d14454430;hb=da72623aec30213a593bd23dca80c89416598f75;hp=f9312b69b3a0486f0b07506781638c3e09cfce89;hpb=ad3f309e3c13d6b88864aab146895c9df9bc6e5b;p=ccan diff --git a/ccan/container_of/test/compile_fail-var-types.c b/ccan/container_of/test/compile_fail-var-types.c index f9312b69..b7f395c7 100644 --- a/ccan/container_of/test/compile_fail-var-types.c +++ b/ccan/container_of/test/compile_fail-var-types.c @@ -14,6 +14,9 @@ int main(int argc, char *argv[]) #ifdef FAIL /* b is a char, but intp is an int * */ foop = container_of_var(intp, foop, b); +#if !HAVE_TYPEOF +#error "Unfortunately we don't fail if we don't have typeof." +#endif #else foop = NULL; #endif