tcon: add testcase for const members in tcon_container_of()
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 2 Jun 2016 02:00:53 +0000 (11:30 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 2 Jun 2016 02:00:53 +0000 (11:30 +0930)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tcon/test/compile_ok-container.c

index 9493c4dcc855ab9c375e445d1ea15605bf43407d..a8347f7aa8f5c302483800b671b8050cd8e12642 100644 (file)
@@ -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;