X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=container_of%2Ftest%2Fcompile_fail-bad-type.c;h=01dfd454597d0eb7d43244a3af81396e1648fc70;hp=d372fa54672bc7ae9f24fb5a0c0626c17a08a4b9;hb=1e7eb5df1a634447ae57edf4c82a37f2d77e19ab;hpb=9c468dc3223ea2285b4f4af6b5544a1abb4d3f5e;ds=sidebyside diff --git a/container_of/test/compile_fail-bad-type.c b/container_of/test/compile_fail-bad-type.c index d372fa54..01dfd454 100644 --- a/container_of/test/compile_fail-bad-type.c +++ b/container_of/test/compile_fail-bad-type.c @@ -13,6 +13,7 @@ int main(int argc, char *argv[]) char *p; #ifdef FAIL + /* p is a char *, but this gives a struct foo * */ p = container_of(intp, struct foo, a); #else p = (char *)intp;