Commit 1d415706 authored by Rusty Russell's avatar Rusty Russell

tcon: add testcase for const members in tcon_container_of()

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent cd2d0906
...@@ -19,13 +19,13 @@ struct info_base { ...@@ -19,13 +19,13 @@ struct info_base {
struct info_tcon { struct info_tcon {
struct info_base base; struct info_base base;
TCON(TCON_CONTAINER(concan, struct outer, inner)); TCON(TCON_CONTAINER(fi, struct outer, inner));
}; };
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
/* Const should work! */ /* Const should work! */
const struct outer *ovar; const struct outer *ovar = NULL;
struct outer *o; struct outer *o;
struct info_tcon info; struct info_tcon info;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment