X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=container_of%2Ftest%2Fcompile_fail-types.c;h=69f02daf289d3ff8cfe82db09029f49f777babac;hb=2d6759d42218bef651c0ece58fe36212099a313c;hp=33d98784413337296b43db0c4e936757cdb0b027;hpb=fdfcdafbfa7957b6ca393bb4000fbaad3813a61a;p=ccan 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;