]> git.ozlabs.org Git - ccan/blobdiff - ccan/tcon/test/compile_ok-container.c
tcon: add testcase for const members in tcon_container_of()
[ccan] / 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;