From: Rusty Russell Date: Thu, 2 Jun 2016 02:00:53 +0000 (+0930) Subject: tcon: add testcase for const members in tcon_container_of() X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=1d415706a6e948fe6dcc3b5dab45812b297f77a1 tcon: add testcase for const members in tcon_container_of() Signed-off-by: Rusty Russell --- diff --git a/ccan/tcon/test/compile_ok-container.c b/ccan/tcon/test/compile_ok-container.c index 9493c4dc..a8347f7a 100644 --- a/ccan/tcon/test/compile_ok-container.c +++ b/ccan/tcon/test/compile_ok-container.c @@ -19,13 +19,13 @@ struct info_base { struct info_tcon { struct info_base base; - TCON(TCON_CONTAINER(concan, struct outer, inner)); + TCON(TCON_CONTAINER(fi, struct outer, inner)); }; int main(int argc, char *argv[]) { /* Const should work! */ - const struct outer *ovar; + const struct outer *ovar = NULL; struct outer *o; struct info_tcon info;