1 #include <ccan/container_of/container_of.h>
9 int main(int argc
, char *argv
[])
11 struct foo foo
= { .a
= 1, .b
= 2 }, *foop
;
15 /* b is a char, but intp is an int * */
16 foop
= container_of(intp
, struct foo
, b
);
20 (void) foop
; /* Suppress unused-but-set-variable warning. */