X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=container_of%2Ftest%2Fcompile_fail-types.c;h=69f02daf289d3ff8cfe82db09029f49f777babac;hp=33d98784413337296b43db0c4e936757cdb0b027;hb=1e7eb5df1a634447ae57edf4c82a37f2d77e19ab;hpb=9c468dc3223ea2285b4f4af6b5544a1abb4d3f5e diff --git a/container_of/test/compile_fail-types.c b/container_of/test/compile_fail-types.c index 33d98784..69f02daf 100644 --- a/container_of/test/compile_fail-types.c +++ b/container_of/test/compile_fail-types.c @@ -12,6 +12,7 @@ int main(int argc, char *argv[]) int *intp = &foo.a; #ifdef FAIL + /* b is a char, but intp is an int * */ foop = container_of(intp, struct foo, b); #else foop = NULL;